Skip to content

Commit d68cb4d

Browse files
authored
Mention attribute like macros in attributes.md (#1574)
1 parent 5d740c9 commit d68cb4d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/attribute.md

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ can be used to/for:
1212
* link to a foreign library
1313
* mark functions as unit tests
1414
* mark functions that will be part of a benchmark
15+
* [attribute like macros][macros]
1516

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

0 commit comments

Comments
 (0)