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 @@ -469,7 +469,7 @@ Reference patterns are always irrefutable.
469
469
> _ StructPatternField_ :\
470
470
>   ;  ; [ _ OuterAttribute_ ] <sup >\* </sup >\
471
471
>   ;  ; (\
472
- >   ;  ;   ;  ;   ;  ; [ INTEGER_LITERAL ] ` : ` [ _ Pattern_ ] \
472
+ >   ;  ;   ;  ;   ;  ; [ TUPLE_INDEX ] ` : ` [ _ Pattern_ ] \
473
473
>   ;  ;   ;  ; | [ IDENTIFIER] ` : ` [ _ Pattern_ ] \
474
474
>   ;  ;   ;  ; | ` ref ` <sup >?</sup > ` mut ` <sup >?</sup > [ IDENTIFIER] \
475
475
>   ;  ; )
@@ -479,6 +479,7 @@ Reference patterns are always irrefutable.
479
479
>   ;  ; ` .. `
480
480
481
481
[ _OuterAttribute_ ] : attributes.html
482
+ [ TUPLE_INDEX ] : tokens.html#integer-literals
482
483
483
484
Struct patterns match struct values that match all criteria defined by its subpatterns.
484
485
They are also used to [ destructure] ( #destructuring ) a struct.
You can’t perform that action at this time.
0 commit comments