diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2023-07-05 14:49:59 -0700 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2023-07-05 14:49:59 -0700 |
| commit | 79df44ba78a10f5ca4cae70d81aa98bfb402e05a (patch) | |
| tree | 99285b28594cf826644f97d9577bb6af6b0aab16 | |
| parent | cde67f65573f54fa59aa954cea9b4e3504a7a8dd (diff) | |
| download | rust-79df44ba78a10f5ca4cae70d81aa98bfb402e05a.tar.gz rust-79df44ba78a10f5ca4cae70d81aa98bfb402e05a.zip | |
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"
| -rw-r--r-- | src/doc/style-guide/src/expressions.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/doc/style-guide/src/expressions.md b/src/doc/style-guide/src/expressions.md index a2994baaddc..cb934990e98 100644 --- a/src/doc/style-guide/src/expressions.md +++ b/src/doc/style-guide/src/expressions.md @@ -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. |
