Skip to content

Commit

Permalink
Fix an uncompilable example of derive macro
Browse files Browse the repository at this point in the history
  • Loading branch information
yvt committed May 29, 2019
1 parent 862b669 commit b111c47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/procedural-macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ For example, the following derive macro defines a helper attribute
#[proc_macro_derive(HelperAttr, attributes(helper))]
pub fn derive_helper_attr(_item: TokenStream) -> TokenStream {
TokenStream::new();
TokenStream::new()
}
```

Expand Down

0 comments on commit b111c47

Please sign in to comment.