diff --git a/crates/bevy_ecs/src/entity/clone_entities.rs b/crates/bevy_ecs/src/entity/clone_entities.rs index 710b96e5a3080..da0e51c25fcf6 100644 --- a/crates/bevy_ecs/src/entity/clone_entities.rs +++ b/crates/bevy_ecs/src/entity/clone_entities.rs @@ -118,12 +118,13 @@ impl EntityCloner { /// Here's an example of how to do it using [`get_component_clone_handler`](Component::get_component_clone_handler): /// ``` /// # use bevy_ecs::prelude::*; -/// # use bevy_ecs::component::{StorageType, component_clone_via_clone, ComponentCloneHandler}; +/// # use bevy_ecs::component::{StorageType, component_clone_via_clone, ComponentCloneHandler, Mutable}; /// #[derive(Clone)] /// struct SomeComponent; /// /// impl Component for SomeComponent { /// const STORAGE_TYPE: StorageType = StorageType::Table; +/// type Mutability = Mutable; /// fn get_component_clone_handler() -> ComponentCloneHandler { /// ComponentCloneHandler::Custom(component_clone_via_clone::) /// }