diff --git a/crates/bevy_ecs/src/world/entity_ref.rs b/crates/bevy_ecs/src/world/entity_ref.rs index 91707e381c..b532387c57 100644 --- a/crates/bevy_ecs/src/world/entity_ref.rs +++ b/crates/bevy_ecs/src/world/entity_ref.rs @@ -277,6 +277,9 @@ impl<'w> EntityMut<'w> { } // TODO: move to BundleInfo + /// Removes a [`Bundle`] of components from the entity and returns the bundle. + /// + /// Returns `None` if the entity does not contain the bundle. pub fn remove(&mut self) -> Option { let archetypes = &mut self.world.archetypes; let storages = &mut self.world.storages;