diff options
| author | Seo Sanghyeon <sanxiyn@gmail.com> | 2014-05-09 01:45:44 +0900 |
|---|---|---|
| committer | Seo Sanghyeon <sanxiyn@gmail.com> | 2014-05-09 01:45:44 +0900 |
| commit | a4b7b8df404c9dc32a00602ddc41b11b758f5791 (patch) | |
| tree | d2526f26743fb6b6be6832338ddc8aac40ea3cd6 | |
| parent | e45485181338137136ea2816d78ed108440f7d50 (diff) | |
| download | rust-a4b7b8df404c9dc32a00602ddc41b11b758f5791.tar.gz rust-a4b7b8df404c9dc32a00602ddc41b11b758f5791.zip | |
Correct attribute grammar in reference manual
| -rw-r--r-- | src/doc/rust.md | 8 |
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 — crates, modules and items — may have _attributes_ |
