Skip to content

Commit 533cce8

Browse files
committed
manual: remove unusual production name in match-expr grammar.
1 parent 1d69b81 commit 533cce8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/rust.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2178,7 +2178,7 @@ then any `else` block is executed.
21782178
~~~~~~~~{.ebnf .gram}
21792179
match_expr : "match" expr '{' match_arm [ '|' match_arm ] * '}' ;
21802180
2181-
match_arm : match_pat '=>' expr_or_blockish ;
2181+
match_arm : match_pat '=>' [ expr "," | '{' block '}' ] ;
21822182
21832183
match_pat : pat [ ".." pat ] ? [ "if" expr ] ;
21842184
~~~~~~~~

0 commit comments

Comments
 (0)