You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: text/0000-proc-macro-attribute-recursion.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ fn this_is_fun(x: u64) -> u64 {
45
45
}
46
46
```
47
47
48
-
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).
48
+
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).
49
49
50
50
`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.
0 commit comments