Skip to content

Commit dbfcdd4

Browse files
committed
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).
1 parent 2190f6c commit dbfcdd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/doc/reference.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,8 @@ syntax named by _designator_. Valid designators are:
603603
* `ty`: a [type](#types)
604604
* `ident`: an [identifier](#identifiers)
605605
* `path`: a [path](#paths)
606-
* `tt`: either side of the `=>` in macro rules
606+
* `tt`: a token tree (a single [token](#tokens) or a sequence of token trees surrounded
607+
by matching `()`, `[]`, or `{}`)
607608
* `meta`: the contents of an [attribute](#attributes)
608609

609610
In the transcriber, the

0 commit comments

Comments
 (0)