Skip to content

Commit

Permalink
Merge pull request rust-lang#611 from yvt/patch-2
Browse files Browse the repository at this point in the history
Fix example code of derive macro
  • Loading branch information
Centril committed May 29, 2019
2 parents 862b669 + b111c47 commit 73f7cba
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 73f7cba

Please sign in to comment.