File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ syntax: `some_extension!(...)`.
7
7
There are two ways to define new macros:
8
8
9
9
* [ Macros by Example] define new syntax in a higher-level, declarative way.
10
- * [ Procedural Macros] can be used to implement custom derive.
10
+ * [ Procedural Macros] define function-like macros, custom derives, and custom
11
+ attributes using functions that operate on input tokens.
11
12
12
13
## Macro Invocation
13
14
@@ -28,7 +29,7 @@ There are two ways to define new macros:
28
29
>   ;  ; | [ _ SimplePath_ ] ` ! ` ` [ ` _ TokenTree_ <sup >\* </sup > ` ] ` ` ; ` \
29
30
>   ;  ; | [ _ SimplePath_ ] ` ! ` ` { ` _ TokenTree_ <sup >\* </sup > ` } `
30
31
31
- A macro invocation executes a macro at compile time and replaces the
32
+ A macro invocation expands a macro at compile time and replaces the
32
33
invocation with the result of the macro. Macros may be invoked in the
33
34
following situations:
34
35
You can’t perform that action at this time.
0 commit comments