File tree 3 files changed +4
-8
lines changed 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ assert_eq!(y, "Bigger");
44
44
45
45
> ** <sup >Syntax</sup >** \
46
46
> _ IfLetExpression_ :\
47
- >   ;  ; ` if ` ` let ` [ _ MatchArmPatterns _ ] ` = ` [ _ Expression_ ] <sub >_ except struct or lazy boolean operator expression_ </sub >
47
+ >   ;  ; ` if ` ` let ` [ _ Pattern _ ] ` = ` [ _ Expression_ ] <sub >_ except struct or lazy boolean operator expression_ </sub >
48
48
> [ _ BlockExpression_ ] \
49
49
>   ;  ; (` else ` (
50
50
> [ _ BlockExpression_ ]
@@ -155,7 +155,7 @@ if let PAT = ( EXPR || EXPR ) { .. }
155
155
[ _BlockExpression_ ] : block-expr.md
156
156
[ _Expression_ ] : ../expressions.md
157
157
[ _LazyBooleanOperatorExpression_ ] : operator-expr.md#lazy-boolean-operators
158
- [ _MatchArmPatterns_ ] : match-expr .md
158
+ [ _Pattern_ ] : ../patterns .md
159
159
[ _eRFCIfLetChain_ ] : https://github.com/rust-lang/rfcs/blob/master/text/2497-if-let-chains.md#rollout-plan-and-transitioning-to-rust-2018
160
160
[ `match` expression ] : match-expr.md
161
161
[ scrutinee ] : ../glossary.md#scrutinee
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ while i < 10 {
67
67
68
68
> ** <sup >Syntax</sup >** \
69
69
> [ _ PredicatePatternLoopExpression_ ] :\
70
- >   ;  ; ` while ` ` let ` [ _ MatchArmPatterns _ ] ` = ` [ _ Expression_ ] <sub >_ except struct or lazy boolean operator expression_ </sub >
70
+ >   ;  ; ` while ` ` let ` [ _ Pattern _ ] ` = ` [ _ Expression_ ] <sub >_ except struct or lazy boolean operator expression_ </sub >
71
71
> [ _ BlockExpression_ ]
72
72
73
73
A ` while let ` loop is semantically similar to a ` while ` loop but in place of a
@@ -291,7 +291,6 @@ expression `()`.
291
291
[ LIFETIME_OR_LABEL ] : ../tokens.md#lifetimes-and-loop-labels
292
292
[ _BlockExpression_ ] : block-expr.md
293
293
[ _Expression_ ] : ../expressions.md
294
- [ _MatchArmPatterns_ ] : match-expr.md
295
294
[ _Pattern_ ] : ../patterns.md
296
295
[ `match` expression ] : match-expr.md
297
296
[ scrutinee ] : ../glossary.md#scrutinee
Original file line number Diff line number Diff line change 15
15
>   ;  ; _ MatchArm_ ` => ` [ _ Expression_ ] ` , ` <sup >?</sup >
16
16
>
17
17
> _ MatchArm_ :\
18
- >   ;  ; [ _ OuterAttribute_ ] <sup >\* </sup > _ MatchArmPatterns_ _ MatchArmGuard_ <sup >?</sup >
19
- >
20
- > _ MatchArmPatterns_ :\
21
- >   ;  ; ` | ` <sup >?</sup > [ _ Pattern_ ] ( ` | ` [ _ Pattern_ ] )<sup >\* </sup >
18
+ >   ;  ; [ _ OuterAttribute_ ] <sup >\* </sup > [ _ Pattern_ ] _ MatchArmGuard_ <sup >?</sup >
22
19
>
23
20
> _ MatchArmGuard_ :\
24
21
>   ;  ; ` if ` [ _ Expression_ ]
You can’t perform that action at this time.
0 commit comments