File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ for i in -2..5 {
174174
175175> ** <sup >Syntax</sup >** \
176176> _ IdentifierPattern_ :\
177- >   ;  ;   ;  ; ` ref ` <sup >?</sup > ` mut ` <sup >?</sup > [ IDENTIFIER] (` @ ` [ _ Pattern _ ] ) <sup >?</sup >
177+ >   ;  ;   ;  ; ` ref ` <sup >?</sup > ` mut ` <sup >?</sup > [ IDENTIFIER] (` @ ` [ _ PatternNoTopAlt _ ] ) <sup >?</sup >
178178
179179Identifier patterns bind the value they match to a variable. The identifier
180180must be unique within the pattern. The variable will shadow any variables of
@@ -852,6 +852,7 @@ result in a type mismatch between `x` in the different subpatterns.
852852[ _PathExpression_ ] : expressions/path-expr.md
853853[ _PathPattern_ ] : #path-patterns
854854[ _Pattern_ ] : #patterns
855+ [ _PatternNoTopAlt_ ] : #patterns
855856[ _PatternWithoutRange_ ] : #patterns
856857[ _QualifiedPathInExpression_ ] : paths.md#qualified-paths
857858[ _RangePattern_ ] : #range-patterns
You can’t perform that action at this time.
0 commit comments