about summary refs log tree commit diff
path: root/src/doc/reference.md
diff options
context:
space:
mode:
authorMatt Friedman <matthew.friedman@mu.edu>2015-08-04 20:00:59 -0500
committerMatt Friedman <matthew.friedman@mu.edu>2015-08-04 20:04:11 -0500
commiteaf27799bbed40f7360e13282b5ebce216b5b177 (patch)
tree0e294543ff73f3f42c4fd600a6b6c8b4b47b9df9 /src/doc/reference.md
parent6afb8f58d18311109081cfaff2fa5a02948989c3 (diff)
downloadrust-eaf27799bbed40f7360e13282b5ebce216b5b177.tar.gz
rust-eaf27799bbed40f7360e13282b5ebce216b5b177.zip
add `meta` designator to macro reference
Diffstat (limited to 'src/doc/reference.md')
-rw-r--r--src/doc/reference.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md
index 5988d62bd79..fdb45c32a1d 100644
--- a/src/doc/reference.md
+++ b/src/doc/reference.md
@@ -538,8 +538,9 @@ balanced, but they are otherwise not special.
 In the matcher, `$` _name_ `:` _designator_ matches the nonterminal in the Rust
 syntax named by _designator_. Valid designators are `item`, `block`, `stmt`,
 `pat`, `expr`, `ty` (type), `ident`, `path`, `tt` (either side of the `=>`
-in macro rules). In the transcriber, the designator is already known, and so
-only the name of a matched nonterminal comes after the dollar sign.
+in macro rules), and `meta` (contents of an attribute). In the transcriber, the
+designator is already known, and so only the name of a matched nonterminal comes
+after the dollar sign.
 
 In both the matcher and transcriber, the Kleene star-like operator indicates
 repetition. The Kleene star operator consists of `$` and parentheses, optionally