commit | 7c509bbe748854272268a4b1ffd74f944042b93a | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sat Nov 19 13:00:12 2016 -0800 |
committer | David Tolnay <dtolnay@gmail.com> | Sat Nov 19 13:00:12 2016 -0800 |
tree | 12c4ac9cd38ea89f64185e0dfcbf8047b9c25108 | |
parent | 59681e829733a8d1b9f3afe48f5fbe1abbe447b3 [diff] |
New proc macro API
diff --git a/README.md b/README.md index 7ebf3ae..e1001db 100644 --- a/README.md +++ b/README.md
@@ -87,9 +87,8 @@ // Build the output let expanded = expand_num_fields(&ast); - // Return the original input struct unmodified, and the - // generated impl along with it - quote!(#ast #expanded).to_string().parse().unwrap() + // Return the generated impl as a TokenStream + expanded.to_string().parse().unwrap() } fn expand_num_fields(ast: &syn::MacroInput) -> quote::Tokens {