Skip to content

Commit 45453f4

Browse files
committed
Fix pat fragment specifier to be the "current" edition
1 parent aeedc20 commit 45453f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/macros-by-example.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Valid fragment specifiers are:
142142
* `stmt`: a [_Statement_] without the trailing semicolon (except for item
143143
statements that require semicolons)
144144
* `pat_param`: a [_PatternNoTopAlt_]
145-
* `pat`: at least any [_PatternNoTopAlt_], and possibly more depending on edition
145+
* `pat`: a [_Pattern_] (see [macro.decl.meta.edition2021])
146146
* `expr`: an [_Expression_] except [_UnderscoreExpression_] and [_ConstBlockExpression_] (see [macro.decl.meta.expr-underscore])
147147
* `expr_2021`: same as `expr` (see [macro.decl.meta.edition2021])
148148
* `ty`: a [_Type_]

0 commit comments

Comments
 (0)