Skip to content

Commit

Permalink
style-guide: Rename "smallntp" non-terminal to "small_no_tuple" for c…
Browse files Browse the repository at this point in the history
…larity

The meaning of "smallntp" was not immediately obvious at a glance.
Rename it to the self-describing "small_no_tuple"
  • Loading branch information
joshtriplett committed Jul 5, 2023
1 parent cde67f6 commit 79df44b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/doc/style-guide/src/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -768,13 +768,13 @@ matches "small" in the following grammar:

```
small:
- smallntp
- unary tuple constructor: `(` smallntp `,` `)`
- small_no_tuple
- unary tuple constructor: `(` small_no_tuple `,` `)`
- `&` small
smallntp:
small_no_tuple:
- single token
- `&` smallntp
- `&` small_no_tuple
```

E.g., `&&Some(foo)` matches, `Foo(4, Bar)` does not.
Expand Down

0 comments on commit 79df44b

Please sign in to comment.