Skip to content

Commit fb82ff7

Browse files
committed
Revert "Temporarily remove pat_param."
This reverts commit 629e7df.
1 parent d23f9da commit fb82ff7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/macros-by-example.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
>
2929
> _MacroFragSpec_ :\
3030
>       `block` | `expr` | `ident` | `item` | `lifetime` | `literal`\
31-
>    | `meta` | `pat` | `path` | `stmt` | `tt` | `ty` | `vis`
31+
>    | `meta` | `pat` | `pat_param` | `path` | `stmt` | `tt` | `ty` | `vis`
3232
>
3333
> _MacroRepSep_ :\
3434
> &nbsp;&nbsp; [_Token_]<sub>_except delimiters and repetition operators_</sub>
@@ -122,7 +122,8 @@ fragment specifiers are:
122122
* `block`: a [_BlockExpression_]
123123
* `stmt`: a [_Statement_] without the trailing semicolon (except for item
124124
statements that require semicolons)
125-
* `pat`: a [_PatternNoTopAlt_]
125+
* `pat_param`: a [_PatternNoTopAlt_]
126+
* `pat`: equivalent to `pat_param`
126127
* `expr`: an [_Expression_]
127128
* `ty`: a [_Type_]
128129
* `ident`: an [IDENTIFIER_OR_KEYWORD]

0 commit comments

Comments
 (0)