Skip to content

Commit eee286d

Browse files
committed
Rollup merge of #27528 - friedm:doc_meta_designator, r=huonw
For #27471
2 parents 8effc61 + eaf2779 commit eee286d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/doc/reference.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,9 @@ balanced, but they are otherwise not special.
538538
In the matcher, `$` _name_ `:` _designator_ matches the nonterminal in the Rust
539539
syntax named by _designator_. Valid designators are `item`, `block`, `stmt`,
540540
`pat`, `expr`, `ty` (type), `ident`, `path`, `tt` (either side of the `=>`
541-
in macro rules). In the transcriber, the designator is already known, and so
542-
only the name of a matched nonterminal comes after the dollar sign.
541+
in macro rules), and `meta` (contents of an attribute). In the transcriber, the
542+
designator is already known, and so only the name of a matched nonterminal comes
543+
after the dollar sign.
543544

544545
In both the matcher and transcriber, the Kleene star-like operator indicates
545546
repetition. The Kleene star operator consists of `$` and parentheses, optionally

0 commit comments

Comments
 (0)