Skip to content

Commit 83f44e3

Browse files
authored
Merge pull request #1048 from ehuss/clarify-macros
Minor update to macros.
2 parents fa24915 + 93f9325 commit 83f44e3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/macros.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ syntax: `some_extension!(...)`.
77
There 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
> &nbsp;&nbsp; | [_SimplePath_] `!` `[` _TokenTree_<sup>\*</sup> `]` `;`\
2930
> &nbsp;&nbsp; | [_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
3233
invocation with the result of the macro. Macros may be invoked in the
3334
following situations:
3435

0 commit comments

Comments
 (0)