Skip to content

Commit

Permalink
Correct attribute grammar in reference manual
Browse files Browse the repository at this point in the history
  • Loading branch information
sanxiyn committed May 8, 2014
1 parent e454851 commit a4b7b8d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/doc/rust.md
Expand Up @@ -1741,10 +1741,10 @@ import public items from their destination, not private items.
## Attributes

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

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

5 comments on commit a4b7b8d

@bors
Copy link
Contributor

@bors bors commented on a4b7b8d May 9, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at sanxiyn@a4b7b8d

@bors
Copy link
Contributor

@bors bors commented on a4b7b8d May 9, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging sanxiyn/rust/attr-reference = a4b7b8d into auto

@bors
Copy link
Contributor

@bors bors commented on a4b7b8d May 9, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sanxiyn/rust/attr-reference = a4b7b8d merged ok, testing candidate = 6520565

@bors
Copy link
Contributor

@bors bors commented on a4b7b8d May 9, 2014

@bors
Copy link
Contributor

@bors bors commented on a4b7b8d May 9, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 6520565

Please sign in to comment.