summary refs log tree commit diff
path: root/src/doc/reference.md
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2016-12-07 10:42:52 -0800
committerGitHub <noreply@github.com>2016-12-07 10:42:52 -0800
commit0b0e7ecd401f9b5bdd488690ff44c0aae53796e7 (patch)
tree757d5f54bbc18e366172ab447886f19caa9538ee /src/doc/reference.md
parent073351c3c30eb50543de4eadb65e4104918006ea (diff)
parentdbfcdd45c607762ee8371494ce8a6326086a9596 (diff)
downloadrust-0b0e7ecd401f9b5bdd488690ff44c0aae53796e7.tar.gz
rust-0b0e7ecd401f9b5bdd488690ff44c0aae53796e7.zip
Rollup merge of #38163 - durka:patch-33, r=bluss
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/doc/reference.md')
-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 12d29f2a3a7..bf286aaec4b 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