Skip to content

Commit 0163ef7

Browse files
ehusstraviscross
authored andcommitted
Reword proc_macro_derive intro
This is to follow the attribute template.
1 parent 63cc743 commit 0163ef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/procedural-macros.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ r[macro.proc.derive]
134134
## The `proc_macro_derive` attribute
135135

136136
r[macro.proc.derive.intro]
137-
*Derive macros* define new inputs for the [`derive` attribute]. These macros can create new [items] given the token stream of a [struct], [enum], or [union]. They can also define [derive macro helper attributes].
137+
The *`proc_macro_derive` [attribute][attributes]* defines a *derive macro* which defines an input for the [`derive` attribute]. These macros can create new [items] given the token stream of a [struct], [enum], or [union]. They can also define [derive macro helper attributes].
138138

139139
r[macro.proc.derive.def]
140140
Custom derive macros are defined by a [public] [function] with the `proc_macro_derive` attribute and a signature of `(TokenStream) -> TokenStream`.

0 commit comments

Comments
 (0)