Skip to content

Commit 7b3ea40

Browse files
committed
Remove redundant semicolon from "block_expr" in grammar reference
"stmt" already includes the terminating semicolon.
1 parent 8fc73c7 commit 7b3ea40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)