Skip to content

Commit

Permalink
Update typo
Browse files Browse the repository at this point in the history
  • Loading branch information
1Git2Clone authored Jan 13, 2025
1 parent 2f68954 commit a9b821e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proc_macro_example_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ pub fn derive_reflective(input: TokenStream) -> TokenStream {
use ReflectiveInputType as RIT;

let data = parse_macro_input!(input as ReflectiveInput);
// ^----------------- This concise is why we implemented `syn::parse::Parse` for
// `ReflectiveInput`.
// ^----------------- This concise syntax is why we implemented `syn::parse::Parse`
// for `ReflectiveInput`.
let item_name = &data.0.ident;

let get_item = |fn_name: TokenStream2, iter_fields: Box<dyn Iterator<Item = String>>| {
Expand Down

0 comments on commit a9b821e

Please sign in to comment.