File tree 1 file changed +2
-1
lines changed
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 {
174
174
175
175
> ** <sup >Syntax</sup >** \
176
176
> _ IdentifierPattern_ :\
177
- >   ;  ;   ;  ; ` ref ` <sup >?</sup > ` mut ` <sup >?</sup > [ IDENTIFIER] (` @ ` [ _ Pattern _ ] ) <sup >?</sup >
177
+ >   ;  ;   ;  ; ` ref ` <sup >?</sup > ` mut ` <sup >?</sup > [ IDENTIFIER] (` @ ` [ _ PatternNoTopAlt _ ] ) <sup >?</sup >
178
178
179
179
Identifier patterns bind the value they match to a variable. The identifier
180
180
must 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.
852
852
[ _PathExpression_ ] : expressions/path-expr.md
853
853
[ _PathPattern_ ] : #path-patterns
854
854
[ _Pattern_ ] : #patterns
855
+ [ _PatternNoTopAlt_ ] : #patterns
855
856
[ _PatternWithoutRange_ ] : #patterns
856
857
[ _QualifiedPathInExpression_ ] : paths.md#qualified-paths
857
858
[ _RangePattern_ ] : #range-patterns
You can’t perform that action at this time.
0 commit comments