Skip to content

Commit

Permalink
Mention attribute like macros in attributes.md (#1574)
Browse files Browse the repository at this point in the history
  • Loading branch information
olalonde authored Jul 26, 2022
1 parent 5d740c9 commit d68cb4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ can be used to/for:
* link to a foreign library
* mark functions as unit tests
* mark functions that will be part of a benchmark
* [attribute like macros][macros]

When attributes apply to a whole crate, their syntax is `#![crate_attribute]`,
and when they apply to a module or item, the syntax is `#[item_attribute]`
Expand All @@ -36,3 +37,4 @@ Attributes can have multiple values and can be separated over multiple lines, to
[cfg]: attribute/cfg.md
[crate]: attribute/crate.md
[lint]: https://en.wikipedia.org/wiki/Lint_%28software%29
[macros]: https://doc.rust-lang.org/book/ch19-06-macros.html#attribute-like-macros

0 comments on commit d68cb4d

Please sign in to comment.