Skip to content

Commit 26054e2

Browse files
committed
Reword proc_macro intro rule
Reworded to follow the attribute template.
1 parent 1858756 commit 26054e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/procedural-macros.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ other functions (like `__internal_foo` instead of `foo`).
8383
r[macro.proc.proc_macro]
8484
## The `proc_macro` attribute
8585
86-
r[macro.proc.function.intro]
87-
*Function-like procedural macros* are procedural macros that are invoked using the macro invocation operator (`!`).
86+
r[macro.proc.proc_macro.intro]
87+
The *`proc_macro` [attribute][attributes]* defines a procedural macro for [function-like macros][macro.invocation].
8888
8989
r[macro.proc.function.def]
9090
These macros are defined by a [public] [function] with the `proc_macro` [attribute] and a signature of `(TokenStream) -> TokenStream`. The input [`TokenStream`] is what is inside the delimiters of the macro invocation and the output [`TokenStream`] replaces the entire macro invocation.

0 commit comments

Comments
 (0)