Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in NamedTypePathDef #9102

Merged
merged 1 commit into from Jul 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/bevy_reflect/bevy_reflect_derive/src/lib.rs
Expand Up @@ -571,7 +571,7 @@ pub fn impl_type_path(input: TokenStream) -> TokenStream {
generics,
}
}
NamedTypePathDef::Primtive(ref ident) => ReflectTypePath::Primitive(ident),
NamedTypePathDef::Primitive(ref ident) => ReflectTypePath::Primitive(ident),
};

let meta = ReflectMeta::new(type_path, ReflectTraits::default());
Expand Down
4 changes: 2 additions & 2 deletions crates/bevy_reflect/bevy_reflect_derive/src/type_path.rs
Expand Up @@ -73,7 +73,7 @@ pub(crate) enum NamedTypePathDef {
generics: Generics,
custom_path: Option<CustomPathDef>,
},
Primtive(Ident),
Primitive(Ident),
}

impl Parse for NamedTypePathDef {
Expand All @@ -87,7 +87,7 @@ impl Parse for NamedTypePathDef {
if path.leading_colon.is_none() && custom_path.is_none() {
if path.segments.len() == 1 {
let ident = path.segments.into_iter().next().unwrap().ident;
Ok(NamedTypePathDef::Primtive(ident))
Ok(NamedTypePathDef::Primitive(ident))
} else {
Err(input.error("non-customized paths must start with a double colon (`::`)"))
}
Expand Down