diff options
| author | Barosl LEE <github@barosl.com> | 2015-01-21 02:16:49 +0900 |
|---|---|---|
| committer | Barosl LEE <github@barosl.com> | 2015-01-21 02:16:49 +0900 |
| commit | 33ea0115743d9587e4aa16e461bf47b57cc0a134 (patch) | |
| tree | a96bf73aede4bac20a52ba38977435fee9861fb3 | |
| parent | 567bf6ca8c042e1c8543d77551a0984d94d2bb3d (diff) | |
| parent | ab73d455fe38b1fc18e15302b98a5cbfdb0dc94e (diff) | |
| download | rust-33ea0115743d9587e4aa16e461bf47b57cc0a134.tar.gz rust-33ea0115743d9587e4aa16e461bf47b57cc0a134.zip | |
Rollup merge of #21358 - glacjay:patch-2, r=alexcrichton
| -rw-r--r-- | src/doc/trpl/macros.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/doc/trpl/macros.md b/src/doc/trpl/macros.md index e0bccb1b86f..f429e9df196 100644 --- a/src/doc/trpl/macros.md +++ b/src/doc/trpl/macros.md @@ -101,6 +101,7 @@ So `($x:ident -> (($e:expr)))`, though excessively fancy, would designate a macr that could be invoked like: `my_macro!(i->(( 2+2 )))`. To avoid ambiguity, macro invocation syntax must conform to the following rules: + * `expr` must be followed by `=>`, `,` or `;`. * `ty` and `path` must be followed by `=>`, `,`, `:`, `=`, `>` or `as`. * `pat` must be followed by `=>`, `,` or `=`. |
