Skip to content

Commit 3cccf26

Browse files
committed
Rollup merge of rust-lang#31396 - mbrubeck:grammar-stmts, r=alexcrichton
"stmt" already includes the terminating semicolon.
2 parents c98833d + 7b3ea40 commit 3cccf26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/doc/grammar.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ struct_expr : expr_path '{' ident ':' expr
516516
### Block expressions
517517

518518
```antlr
519-
block_expr : '{' [ stmt ';' | item ] *
519+
block_expr : '{' [ stmt | item ] *
520520
[ expr ] '}' ;
521521
```
522522

0 commit comments

Comments
 (0)