Skip to content

Commit 7671247

Browse files
committed
Slightly better description of macro designators.
Closes #3378
1 parent a24da7e commit 7671247

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/rust.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -510,9 +510,8 @@ For parsing reasons, delimiters must be balanced, but they are otherwise not spe
510510

511511
In the matcher, `$` _name_ `:` _designator_ matches the nonterminal in the
512512
Rust syntax named by _designator_. Valid designators are `item`, `block`,
513-
`stmt`, `pat`, `expr`, `ty`, `ident`, `path`, `tt`, `matchers`. The last two
514-
are the right-hand side and the left-hand side respectively of the `=>` in
515-
macro rules. In the transcriber, the designator is already known, and so only
513+
`stmt`, `pat`, `expr`, `ty` (type), `ident`, `path`, `matchers` (lhs of the `=>` in macro rules),
514+
`tt` (rhs of the `=>` in macro rules). In the transcriber, the designator is already known, and so only
516515
the name of a matched nonterminal comes after the dollar sign.
517516

518517
In both the matcher and transcriber, the Kleene star-like operator indicates repetition.

0 commit comments

Comments
 (0)