Skip to content

Commit 11b1934

Browse files
committed
fixed match guard syntax
1 parent 303dab2 commit 11b1934

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/expressions/match-expr.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,14 @@ MatchArm ->
2020
OuterAttribute* Pattern MatchArmGuard?
2121
2222
MatchArmGuard ->
23-
`if` Expression
24-
| `if` Expression `&&` LetChain
23+
`if` MatchConditions
24+
25+
MatchConditions ->
26+
MatchCondition ( `&&` MatchCondition )*
27+
28+
MatchCondition ->
29+
OuterAttribute* `let` Pattern `=` Scrutinee
30+
| Expression
2531
```
2632
<!-- TODO: The exception above isn't accurate, see https://github.com/rust-lang/reference/issues/569 -->
2733

0 commit comments

Comments
 (0)