File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Expand file tree Collapse file tree 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");
4444
4545> ** <sup >Syntax</sup >** \
4646> _ 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 >
4848> [ _ BlockExpression_ ] \
4949>   ;  ; (` else ` (
5050> [ _ BlockExpression_ ]
@@ -155,7 +155,7 @@ if let PAT = ( EXPR || EXPR ) { .. }
155155[ _BlockExpression_ ] : block-expr.md
156156[ _Expression_ ] : ../expressions.md
157157[ _LazyBooleanOperatorExpression_ ] : operator-expr.md#lazy-boolean-operators
158- [ _MatchArmPatterns_ ] : match-expr .md
158+ [ _Pattern_ ] : ../patterns .md
159159[ _eRFCIfLetChain_ ] : https://github.com/rust-lang/rfcs/blob/master/text/2497-if-let-chains.md#rollout-plan-and-transitioning-to-rust-2018
160160[ `match` expression ] : match-expr.md
161161[ scrutinee ] : ../glossary.md#scrutinee
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ while i < 10 {
6767
6868> ** <sup >Syntax</sup >** \
6969> [ _ 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 >
7171> [ _ BlockExpression_ ]
7272
7373A ` while let ` loop is semantically similar to a ` while ` loop but in place of a
@@ -291,7 +291,6 @@ expression `()`.
291291[ LIFETIME_OR_LABEL ] : ../tokens.md#lifetimes-and-loop-labels
292292[ _BlockExpression_ ] : block-expr.md
293293[ _Expression_ ] : ../expressions.md
294- [ _MatchArmPatterns_ ] : match-expr.md
295294[ _Pattern_ ] : ../patterns.md
296295[ `match` expression ] : match-expr.md
297296[ scrutinee ] : ../glossary.md#scrutinee
Original file line number Diff line number Diff line change 1515>   ;  ; _ MatchArm_ ` => ` [ _ Expression_ ] ` , ` <sup >?</sup >
1616>
1717> _ 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 >
2219>
2320> _ MatchArmGuard_ :\
2421>   ;  ; ` if ` [ _ Expression_ ]
You can’t perform that action at this time.
0 commit comments