Skip to content

Commit 53cd0bc

Browse files
committed
Add literal semicolon to the grammar of view_item
Both external crate declarations and use declarations need to end with a semicolon.
1 parent c3156a8 commit 53cd0bc

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
@@ -322,7 +322,7 @@ mod : [ view_item | item ] * ;
322322
#### View items
323323

324324
```antlr
325-
view_item : extern_crate_decl | use_decl ;
325+
view_item : extern_crate_decl | use_decl ';' ;
326326
```
327327

328328
##### Extern crate declarations

0 commit comments

Comments
 (0)