Skip to content

Commit b2a6d42

Browse files
committed
fixed syntax
1 parent 0eef542 commit b2a6d42

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

src/expressions/match-expr.md

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,7 @@ MatchArm ->
2121
2222
MatchArmGuard ->
2323
`if` Expression
24-
| `if` LetChain
25-
26-
LetChain ->
27-
LetChainCondition ( `&&` LetChainCondition )*
28-
29-
LetChainCondition ->
30-
Expression _except_ [ExcludedConditions]
31-
| OuterAttribute* `let` Pattern `=` Expression _except_ [ExcludedConditions]
32-
33-
ExcludedConditions ->
34-
IfExpression
35-
| MatchExpression
36-
| WhileExpression
37-
| ForExpression
38-
| LoopExpression
39-
| AsyncExpression
40-
| TryExpression
41-
| AwaitExpression
24+
| `if` Expression && LetChain
4225
```
4326
<!-- TODO: The exception above isn't accurate, see https://github.com/rust-lang/reference/issues/569 -->
4427

0 commit comments

Comments
 (0)