Skip to content

Commit

Permalink
Make explicit reference to scrutinee expression in grammar snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
AloeareV committed Jun 8, 2021
1 parent 8f598e2 commit 367d57d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/expressions/match-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@

> **<sup>Syntax</sup>**\
> _MatchExpression_ :\
> &nbsp;&nbsp; `match` [_Expression_]<sub>_except struct expression_</sub> `{`\
> &nbsp;&nbsp; `match` Scrutinee `{`\
> &nbsp;&nbsp; &nbsp;&nbsp; [_InnerAttribute_]<sup>\*</sup>\
> &nbsp;&nbsp; &nbsp;&nbsp; _MatchArms_<sup>?</sup>\
> &nbsp;&nbsp; `}`
>
>_Scrutinee_ :\
> &nbsp;&nbsp; [_Expression_]<sub>_except struct expression_</sub>
>
> _MatchArms_ :\
> &nbsp;&nbsp; ( _MatchArm_ `=>`
> ( [_ExpressionWithoutBlock_][_Expression_] `,`
Expand Down

0 comments on commit 367d57d

Please sign in to comment.