Skip to content

Commit 367d57d

Browse files
committed
Make explicit reference to scrutinee expression in grammar snippet
1 parent 8f598e2 commit 367d57d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/expressions/match-expr.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22

33
> **<sup>Syntax</sup>**\
44
> _MatchExpression_ :\
5-
> &nbsp;&nbsp; `match` [_Expression_]<sub>_except struct expression_</sub> `{`\
5+
> &nbsp;&nbsp; `match` Scrutinee `{`\
66
> &nbsp;&nbsp; &nbsp;&nbsp; [_InnerAttribute_]<sup>\*</sup>\
77
> &nbsp;&nbsp; &nbsp;&nbsp; _MatchArms_<sup>?</sup>\
88
> &nbsp;&nbsp; `}`
99
>
10+
>_Scrutinee_ :\
11+
> &nbsp;&nbsp; [_Expression_]<sub>_except struct expression_</sub>
12+
>
1013
> _MatchArms_ :\
1114
> &nbsp;&nbsp; ( _MatchArm_ `=>`
1215
> ( [_ExpressionWithoutBlock_][_Expression_] `,`

0 commit comments

Comments
 (0)