Skip to content

Commit 79df44b

Browse files
committed
style-guide: Rename "smallntp" non-terminal to "small_no_tuple" for clarity
The meaning of "smallntp" was not immediately obvious at a glance. Rename it to the self-describing "small_no_tuple"
1 parent cde67f6 commit 79df44b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/doc/style-guide/src/expressions.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -768,13 +768,13 @@ matches "small" in the following grammar:
768768

769769
```
770770
small:
771-
- smallntp
772-
- unary tuple constructor: `(` smallntp `,` `)`
771+
- small_no_tuple
772+
- unary tuple constructor: `(` small_no_tuple `,` `)`
773773
- `&` small
774774
775-
smallntp:
775+
small_no_tuple:
776776
- single token
777-
- `&` smallntp
777+
- `&` small_no_tuple
778778
```
779779

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

0 commit comments

Comments
 (0)