Skip to content

Commit

Permalink
Update text/0000-proc-macro-attribute-recursion.md
Browse files Browse the repository at this point in the history
Fix typo

Co-Authored-By: llogiq <bogusandre@gmail.com>
  • Loading branch information
oli-obk and llogiq committed Jan 23, 2019
1 parent 91ac6d3 commit ae7e822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text/0000-proc-macro-attribute-recursion.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ fn this_is_fun(x: u64) -> u64 {
}
```

Because of the `#[flame]` attribtue, this is fed back to flamer, which modifies the function resulting from the macro. Note that the attribute needs not be placed at the same AST node (and in fact, flamer would place it only on macro invocation nodes).
Because of the `#[flame]` attribute, this is fed back to flamer, which modifies the function resulting from the macro. Note that the attribute does not need to be placed at the same AST node (and in fact, flamer would place it only on macro invocation nodes).

`proc_macro` writers can implement their macros in terms of `proc_macro_attributes` (which is a very roundabout way to deal with macros, but at least it would work at all) to gain the same benefits.

Expand Down

0 comments on commit ae7e822

Please sign in to comment.