Skip to content

Commit

Permalink
Rollup merge of rust-lang#38163 - durka:patch-33, r=bluss
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
GuillaumeGomez authored Dec 7, 2016
2 parents 073351c + dbfcdd4 commit 0b0e7ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/doc/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b0e7ec

Please sign in to comment.