Skip to content

Commit b316723

Browse files
authored
Merge pull request #1640 from ehuss/pat-edition
Fix `pat` fragment specifier to be the "current" edition
2 parents c26733c + 8658269 commit b316723

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
@@ -145,7 +145,7 @@ Valid fragment specifiers are:
145145
* `lifetime`: a [LIFETIME_TOKEN]
146146
* `literal`: matches `-`<sup>?</sup>[_LiteralExpression_]
147147
* `meta`: an [_Attr_], the contents of an attribute
148-
* `pat`: at least any [_PatternNoTopAlt_], and possibly more depending on edition
148+
* `pat`: a [_Pattern_] (see [macro.decl.meta.edition2021])
149149
* `pat_param`: a [_PatternNoTopAlt_]
150150
* `path`: a [_TypePath_] style path
151151
* `stmt`: a [_Statement_] without the trailing semicolon (except for item statements that require semicolons)

0 commit comments

Comments
 (0)