Skip to content

Commit 981a1c3

Browse files
committed
macos => macros
1 parent 4dc54f2 commit 981a1c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/procedural-macros.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ other functions (like `__internal_foo` instead of `foo`).
7171
7272
Function-like procedural macros define new invokable macros.
7373
74-
These macros are defined by a [public] [function] with the `proc_maco`
74+
These macros are defined by a [public] [function] with the `proc_macro`
7575
[attribute] and a signature of `(TokenStream) -> TokenStream`. The input
7676
[`TokenStream`] is what is inside the delimiters of the macro invocation and the
7777
output [`TokenStream`] replaces the entire macro invocation. It may contain an
@@ -119,7 +119,7 @@ define new items given the token stream of a [struct], [enum], or [union]. They
119119
also define derive mode helper attributes.
120120

121121
Custom deriver modes are defined by a [public] [function] with the
122-
`proc_maco_derive` attribute and a signature of `(TokenStream) -> TokenStream`.
122+
`proc_macro_derive` attribute and a signature of `(TokenStream) -> TokenStream`.
123123

124124
The input [`TokenStream`] is the token stream of the item that has the `derive`
125125
attribute on it. The output [`TokenStream`] must be a set of items that are

0 commit comments

Comments
 (0)