diff --git a/crates/bevy_ecs/src/system/commands/mod.rs b/crates/bevy_ecs/src/system/commands/mod.rs index 5f081804da..7b0638103e 100644 --- a/crates/bevy_ecs/src/system/commands/mod.rs +++ b/crates/bevy_ecs/src/system/commands/mod.rs @@ -812,9 +812,6 @@ impl<'w, 's, 'a> EntityCommands<'w, 's, 'a> { /// Removes a [`Bundle`] of components from the entity. /// - /// See [`EntityWorldMut::remove`](EntityWorldMut::remove) for more - /// details. - /// /// # Example /// /// ``` @@ -912,9 +909,6 @@ impl<'w, 's, 'a> EntityCommands<'w, 's, 'a> { /// /// This can also be used to remove all the components from the entity by passing it an empty Bundle. /// - /// See [`EntityWorldMut::retain`](EntityWorldMut::retain) for more - /// details. - /// /// # Example /// /// ``` diff --git a/crates/bevy_ecs/src/world/entity_ref.rs b/crates/bevy_ecs/src/world/entity_ref.rs index 5f17409c90..586fc03246 100644 --- a/crates/bevy_ecs/src/world/entity_ref.rs +++ b/crates/bevy_ecs/src/world/entity_ref.rs @@ -889,6 +889,8 @@ impl<'w> EntityWorldMut<'w> { } /// Removes any components in the [`Bundle`] from the entity. + /// + /// See [`EntityCommands::remove`](crate::system::EntityCommands::remove) for more details. // TODO: BundleRemover? pub fn remove(&mut self) -> &mut Self { let archetypes = &mut self.world.archetypes; @@ -920,6 +922,8 @@ impl<'w> EntityWorldMut<'w> { } /// Removes any components except those in the [`Bundle`] from the entity. + /// + /// See [`EntityCommands::retain`](crate::system::EntityCommands::retain) for more details. pub fn retain(&mut self) -> &mut Self { let archetypes = &mut self.world.archetypes; let storages = &mut self.world.storages; @@ -961,6 +965,8 @@ impl<'w> EntityWorldMut<'w> { } /// Despawns the current entity. + /// + /// See [`World::despawn`] for more details. pub fn despawn(self) { debug!("Despawning entity {:?}", self.entity); let world = self.world;