Skip to content

Commit a86d6b4

Browse files
committed
manual: fix attribute ebnf
1 parent 13ac12d commit a86d6b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/rust.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1678,10 +1678,10 @@ import public items from their destination, not private items.
16781678
## Attributes
16791679

16801680
~~~~ {.notrust .ebnf .gram}
1681-
attribute : '#' '!' ? '[' attr_list ']'
1682-
attr_list : attr [ ',' attr_list ]*
1681+
attribute : '#' '!' ? '[' attr_list ']' ;
1682+
attr_list : attr [ ',' attr_list ]* ;
16831683
attr : ident [ '=' literal
1684-
| '(' attr_list ')' ] ?
1684+
| '(' attr_list ')' ] ? ;
16851685
~~~~
16861686

16871687
Static entities in Rust -- crates, modules and items -- may have _attributes_

0 commit comments

Comments
 (0)