diff --git a/crates/bevy_ecs/src/reflect/entity_commands.rs b/crates/bevy_ecs/src/reflect/entity_commands.rs index 20c5e16c6ddc7..15f48e234c449 100644 --- a/crates/bevy_ecs/src/reflect/entity_commands.rs +++ b/crates/bevy_ecs/src/reflect/entity_commands.rs @@ -102,7 +102,7 @@ pub trait ReflectCommandExt { component: Box, ) -> &mut Self; - /// Removes from the entity the component or bundle with the given type name registered in [`AppTypeRegistry`]. + /// Removes from the entity the component or bundle with the given type path registered in [`AppTypeRegistry`]. /// /// If the type is a bundle, it will remove any components in that bundle regardless if the entity /// contains all the components. @@ -159,12 +159,12 @@ pub trait ReflectCommandExt { /// .remove_reflect(prefab.data.reflect_type_path().to_owned()); /// } /// ``` - fn remove_reflect(&mut self, component_type_name: impl Into>) -> &mut Self; + fn remove_reflect(&mut self, component_type_path: impl Into>) -> &mut Self; /// Same as [`remove_reflect`](ReflectCommandExt::remove_reflect), but using the `T` resource as type registry instead of /// `AppTypeRegistry`. fn remove_reflect_with_registry>( &mut self, - component_type_name: impl Into>, + component_type_path: impl Into>, ) -> &mut Self; } @@ -263,7 +263,7 @@ impl<'w> EntityWorldMut<'w> { self } - /// Removes from the entity the component or bundle with the given type name registered in [`AppTypeRegistry`]. + /// Removes from the entity the component or bundle with the given type path registered in [`AppTypeRegistry`]. /// /// If the type is a bundle, it will remove any components in that bundle regardless if the entity /// contains all the components.