File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ syntax: `some_extension!(...)`.
77There are two ways to define new macros:
88
99* [ 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.
1112
1213## Macro Invocation
1314
@@ -28,7 +29,7 @@ There are two ways to define new macros:
2829>   ;  ; | [ _ SimplePath_ ] ` ! ` ` [ ` _ TokenTree_ <sup >\* </sup > ` ] ` ` ; ` \
2930>   ;  ; | [ _ SimplePath_ ] ` ! ` ` { ` _ TokenTree_ <sup >\* </sup > ` } `
3031
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
3233invocation with the result of the macro. Macros may be invoked in the
3334following situations:
3435
You can’t perform that action at this time.
0 commit comments