Skip to content

Commit 33ea011

Browse files
committed
Rollup merge of rust-lang#21358 - glacjay:patch-2, r=alexcrichton
2 parents 567bf6c + ab73d45 commit 33ea011

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/doc/trpl/macros.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ So `($x:ident -> (($e:expr)))`, though excessively fancy, would designate a macr
101101
that could be invoked like: `my_macro!(i->(( 2+2 )))`.
102102

103103
To avoid ambiguity, macro invocation syntax must conform to the following rules:
104+
104105
* `expr` must be followed by `=>`, `,` or `;`.
105106
* `ty` and `path` must be followed by `=>`, `,`, `:`, `=`, `>` or `as`.
106107
* `pat` must be followed by `=>`, `,` or `=`.

0 commit comments

Comments
 (0)