Skip to content

Commit 0698fc6

Browse files
committed
Clarify that macros are expr-positioned.
1 parent e9622f0 commit 0698fc6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/tutorial.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2411,6 +2411,11 @@ The right-hand side of the `=>` follows the same rules as the left-hand side,
24112411
except that `$` need only be followed by the name of the syntactic fragment
24122412
to transcribe.
24132413

2414+
The right-hand side must be surrounded by delimiters of some kind, and must be
2415+
an expression; currently, user-defined macros can only be invoked in
2416+
expression position (even though `macro_rules!` itself can be in item
2417+
position).
2418+
24142419
## Multiplicity
24152420

24162421
### Invocation

0 commit comments

Comments
 (0)