From 79df44ba78a10f5ca4cae70d81aa98bfb402e05a Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Wed, 5 Jul 2023 14:49:59 -0700 Subject: [PATCH] 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" --- src/doc/style-guide/src/expressions.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/doc/style-guide/src/expressions.md b/src/doc/style-guide/src/expressions.md index a2994baaddc8d..cb934990e9829 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.