about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2023-07-05 14:49:59 -0700
committerJosh Triplett <josh@joshtriplett.org>2023-07-05 14:49:59 -0700
commit79df44ba78a10f5ca4cae70d81aa98bfb402e05a (patch)
tree99285b28594cf826644f97d9577bb6af6b0aab16
parentcde67f65573f54fa59aa954cea9b4e3504a7a8dd (diff)
downloadrust-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.md8
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.