Skip to content

Commit 1b9b8d8

Browse files
authored
Update macros-by-example.md
1 parent 4dee6eb commit 1b9b8d8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/macros-by-example.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
> &nbsp;&nbsp; | `{` _MacroMatch_<sup>\*</sup> `}`
2222
>
2323
> _MacroMatch_ :\
24-
> &nbsp;&nbsp; &nbsp;&nbsp; [_Token_]<sub>_except $ and delimiters_</sub>\
24+
> &nbsp;&nbsp; &nbsp;&nbsp; [_Token_]<sub>_except $ and [delimiters]_</sub>\
2525
> &nbsp;&nbsp; | _MacroMatcher_\
2626
> &nbsp;&nbsp; | `$` ( [IDENTIFIER_OR_KEYWORD] <sub>_except `crate`_</sub> | [RAW_IDENTIFIER] | `_` ) `:` _MacroFragSpec_\
2727
> &nbsp;&nbsp; | `$` `(` _MacroMatch_<sup>+</sup> `)` _MacroRepSep_<sup>?</sup> _MacroRepOp_
@@ -31,7 +31,7 @@
3131
> &nbsp;&nbsp; | `meta` | `pat` | `pat_param` | `path` | `stmt` | `tt` | `ty` | `vis`
3232
>
3333
> _MacroRepSep_ :\
34-
> &nbsp;&nbsp; [_Token_]<sub>_except delimiters and repetition operators_</sub>
34+
> &nbsp;&nbsp; [_Token_]<sub>_except [delimiters] and MacroRepOp_</sub>
3535
>
3636
> _MacroRepOp_ :\
3737
> &nbsp;&nbsp; `*` | `+` | `?`
@@ -509,6 +509,7 @@ For more detail, see the [formal specification].
509509
[_Statement_]: statements.md
510510
[_TokenTree_]: macros.md#macro-invocation
511511
[_Token_]: tokens.md
512+
[delimiters]: tokens.md#delimiters
512513
[_TypePath_]: paths.md#paths-in-types
513514
[_Type_]: types.md#type-expressions
514515
[_UnderscoreExpression_]: expressions/underscore-expr.md

0 commit comments

Comments
 (0)