You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/procedural-macros.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,8 +83,8 @@ other functions (like `__internal_foo` instead of `foo`).
83
83
r[macro.proc.proc_macro]
84
84
## The `proc_macro` attribute
85
85
86
-
r[macro.proc.function.intro]
87
-
*Function-like procedural macros* are procedural macros that are invoked using the macroinvocation operator (`!`).
86
+
r[macro.proc.proc_macro.intro]
87
+
The *`proc_macro` [attribute][attributes]* defines a procedural macro for [function-like macros][macro.invocation].
88
88
89
89
r[macro.proc.function.def]
90
90
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