about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlex Burka <durka42+github@gmail.com>2016-12-04 15:56:51 -0500
committerAlex Burka <aburka@seas.upenn.edu>2016-12-04 15:58:49 -0500
commitdbfcdd45c607762ee8371494ce8a6326086a9596 (patch)
tree06c1d3ea3caf761fdc02a100e91fe5cca58b049b /src
parent2190f6c3c28595275b73e2b6134e3bfcab1f66f5 (diff)
downloadrust-dbfcdd45c607762ee8371494ce8a6326086a9596.tar.gz
rust-dbfcdd45c607762ee8371494ce8a6326086a9596.zip
reference: fix definition of :tt
The reference says that $x:tt matches "either side of the `=>` in macro_rules` which is technically true but completely uninformative. This changes that bullet point to what the book says (a single token or sequence of token trees inside brackets).
Diffstat (limited to 'src')
-rw-r--r--src/doc/reference.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md
index 8655bab4b21..5d20738a1e3 100644
--- a/src/doc/reference.md
+++ b/src/doc/reference.md
@@ -603,7 +603,8 @@ syntax named by _designator_. Valid designators are:
 * `ty`: a [type](#types)
 * `ident`: an [identifier](#identifiers)
 * `path`: a [path](#paths)
-* `tt`: either side of the `=>` in macro rules
+* `tt`: a token tree (a single [token](#tokens) or a sequence of token trees surrounded
+  by matching `()`, `[]`, or `{}`)
 * `meta`: the contents of an [attribute](#attributes)
 
 In the transcriber, the