diff --git a/crates/bevy_ecs/src/reflect/entity_commands.rs b/crates/bevy_ecs/src/reflect/entity_commands.rs index c65d7d4ce0456..0b8c37dafbca3 100644 --- a/crates/bevy_ecs/src/reflect/entity_commands.rs +++ b/crates/bevy_ecs/src/reflect/entity_commands.rs @@ -54,8 +54,8 @@ pub trait ReflectCommandExt { /// mut prefab: ResMut /// ) { /// // Create a set of new boxed reflect components to use - /// let boxed_reflect_component_a: Box = Box::new(ComponentA(916)); - /// let boxed_reflect_component_b: Box = Box::new(ComponentB("NineSixteen".to_string())); + /// let boxed_reflect_component_a: Box = Box::new(ComponentA(916)); + /// let boxed_reflect_component_b: Box = Box::new(ComponentB("NineSixteen".to_string())); /// /// // You can overwrite the component in the resource with either ComponentA or ComponentB /// prefab.component = boxed_reflect_component_a;