Skip to content

Commit 20c4393

Browse files
authored
Merge pull request rust-lang#268 from goodmanjonathan/patch-1
Match guards are optional
2 parents 45649d8 + c2c20cb commit 20c4393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expressions/match-expr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
> &nbsp;&nbsp; _MatchArm_ `=>` ( [_BlockExpression_] | [_Expression_] ) `,`<sup>?</sup>
1616
>
1717
> _MatchArm_ :
18-
> &nbsp;&nbsp; [_OuterAttribute_]<sup>\*</sup> _MatchArmPatterns_ _MatchArmGuard_
18+
> &nbsp;&nbsp; [_OuterAttribute_]<sup>\*</sup> _MatchArmPatterns_ _MatchArmGuard_<sup>?</sup>
1919
>
2020
> _MatchArmPatterns_ :
2121
> &nbsp;&nbsp; `|`<sup>?</sup> _Pattern_ ( `|` _Pattern_ )<sup>*</sup>

0 commit comments

Comments
 (0)