We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e454851 commit a4b7b8dCopy full SHA for a4b7b8d
src/doc/rust.md
@@ -1741,10 +1741,10 @@ import public items from their destination, not private items.
1741
## Attributes
1742
1743
~~~~ {.notrust .ebnf .gram}
1744
-attribute : '#' '!' ? '[' attr_list ']' ;
1745
-attr_list : attr [ ',' attr_list ]* ;
1746
-attr : ident [ '=' literal
1747
- | '(' attr_list ')' ] ? ;
+attribute : '#' '!' ? '[' meta_item ']' ;
+meta_item : ident [ '=' literal
+ | '(' meta_seq ')' ] ? ;
+meta_seq : meta_item [ ',' meta_seq ]* ;
1748
~~~~
1749
1750
Static entities in Rust — crates, modules and items — may have _attributes_
0 commit comments