Skip to content

Commit

Permalink
Fix pat fragment specifier to be the "current" edition
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Oct 22, 2024
1 parent d953a36 commit 8658269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macros-by-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Valid fragment specifiers are:
* `lifetime`: a [LIFETIME_TOKEN]
* `literal`: matches `-`<sup>?</sup>[_LiteralExpression_]
* `meta`: an [_Attr_], the contents of an attribute
* `pat`: at least any [_PatternNoTopAlt_], and possibly more depending on edition
* `pat`: a [_Pattern_] (see [macro.decl.meta.edition2021])
* `pat_param`: a [_PatternNoTopAlt_]
* `path`: a [_TypePath_] style path
* `stmt`: a [_Statement_] without the trailing semicolon (except for item statements that require semicolons)
Expand Down

0 comments on commit 8658269

Please sign in to comment.