Skip to content

Commit

Permalink
Merge pull request rust-lang#388 from SergioBenitez/master
Browse files Browse the repository at this point in the history
Stabilize 'attr_literals' feature.
  • Loading branch information
Havvy authored Aug 29, 2018
2 parents c04a1d9 + 4c307d5 commit f89b762
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
> _MetaItem_ :\
>       IDENTIFIER\
>    | IDENTIFIER `=` LITERAL\
>    | IDENTIFIER `(` LITERAL `)`\
>    | IDENTIFIER `(` _MetaSeq_ `)`
>
> _MetaSeq_ :\
>       EMPTY\
>    | _MetaItem_\
>    | LITERAL\
>    | _MetaItem_ `,` _MetaSeq_
An _attribute_ is a general, free-form metadatum that is interpreted according
Expand All @@ -30,9 +30,8 @@ Attributes may appear as any of:
* A single identifier, the _attribute name_
* An identifier followed by the equals sign '=' and a literal, providing a
key/value pair
* An identifier followed by a parenthesized literal, providing a
key/value pair
* An identifier followed by a parenthesized list of sub-attribute arguments
which include literals

_Inner attributes_, written with a bang ("!") after the hash ("#"), apply to the
item that the attribute is declared within. _Outer attributes_, written without
Expand Down

0 comments on commit f89b762

Please sign in to comment.