Skip to content

Commit

Permalink
manual: fix attribute ebnf
Browse files Browse the repository at this point in the history
  • Loading branch information
emberian committed Apr 4, 2014
1 parent 13ac12d commit a86d6b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/doc/rust.md
Expand Up @@ -1678,10 +1678,10 @@ import public items from their destination, not private items.
## Attributes

~~~~ {.notrust .ebnf .gram}
attribute : '#' '!' ? '[' attr_list ']'
attr_list : attr [ ',' attr_list ]*
attribute : '#' '!' ? '[' attr_list ']' ;
attr_list : attr [ ',' attr_list ]* ;
attr : ident [ '=' literal
| '(' attr_list ')' ] ?
| '(' attr_list ')' ] ? ;
~~~~

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

0 comments on commit a86d6b4

Please sign in to comment.