Skip to content

Commit

Permalink
style-guide: Rephrase a confusingly ordered, ambiguous sentence (and …
Browse files Browse the repository at this point in the history
…fix a typo)

This sentence had a parenthetical without a closing parenthesis, and had
the phrase "which doesn't require special formatting" ambiguously at the
end of a list when it only applied to the last item of the list.
  • Loading branch information
joshtriplett committed Jun 22, 2023
1 parent c930b21 commit 3e2449c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/doc/style-guide/src/items.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ let y = (11, 22, 33);

In the declaration, put each variant on its own line, block indented.

Format each variant accordingly as either a struct, tuple struct, or identifier,
which doesn't require special formatting (but without the `struct` keyword.
Format each variant accordingly as either a struct (but without the `struct`
keyword), a tuple struct, or an identifier (which doesn't require special
formatting):

```rust
enum FooBar {
Expand Down

0 comments on commit 3e2449c

Please sign in to comment.