]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/reference/src/expressions/match-expr.md
New upstream version 1.55.0+dfsg1
[rustc.git] / src / doc / reference / src / expressions / match-expr.md
index 53455fa9ace6f97482e766f1dba0fe7ad108c5fa..febf60cc3769de4498e42bba926ed5bfcf90f2b7 100644 (file)
@@ -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_] `,`