about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSeo Sanghyeon <sanxiyn@gmail.com>2014-05-09 01:45:44 +0900
committerSeo Sanghyeon <sanxiyn@gmail.com>2014-05-09 01:45:44 +0900
commita4b7b8df404c9dc32a00602ddc41b11b758f5791 (patch)
treed2526f26743fb6b6be6832338ddc8aac40ea3cd6
parente45485181338137136ea2816d78ed108440f7d50 (diff)
downloadrust-a4b7b8df404c9dc32a00602ddc41b11b758f5791.tar.gz
rust-a4b7b8df404c9dc32a00602ddc41b11b758f5791.zip
Correct attribute grammar in reference manual
-rw-r--r--src/doc/rust.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/doc/rust.md b/src/doc/rust.md
index 9a9e3747963..e15ce5c4f93 100644
--- a/src/doc/rust.md
+++ b/src/doc/rust.md
@@ -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 &mdash; crates, modules and items &mdash; may have _attributes_