From 8658269fdef1c54a6fedc525462cc10978418088 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Wed, 2 Oct 2024 13:57:50 -0700 Subject: [PATCH] Fix `pat` fragment specifier to be the "current" edition --- src/macros-by-example.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macros-by-example.md b/src/macros-by-example.md index 3c2aef965..aa04467d1 100644 --- a/src/macros-by-example.md +++ b/src/macros-by-example.md @@ -145,7 +145,7 @@ Valid fragment specifiers are: * `lifetime`: a [LIFETIME_TOKEN] * `literal`: matches `-`?[_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)