Skip to content

Commit c8e8d8c

Browse files
committed
Second feedback impl
1 parent 58fe794 commit c8e8d8c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

crates/bevy_hierarchy/src/child_builder.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ impl<'w, 's, 'a> ChildBuilder<'w, 's, 'a> {
222222
e
223223
}
224224

225-
/// Spawns an [`Entity`] with no components and inserts it into the children defined by the [`ChildBuilder`] whose adds the [`Parent`] component to it.
225+
/// Spawns an [`Entity`] with no components and inserts it into the children defined by the [`ChildBuilder`] which adds the [`Parent`] component to it.
226226
pub fn spawn_empty(&mut self) -> EntityCommands<'w, 's, '_> {
227227
let e = self.commands.spawn_empty();
228228
self.push_children.children.push(e.id());
@@ -360,7 +360,7 @@ impl<'w> WorldChildBuilder<'w> {
360360
self.world.entity_mut(entity)
361361
}
362362

363-
/// Spawns an [`Entity`] with no components and inserts it into the children defined by the [`WorldChildBuilder`] whose adds the [`Parent`] component to it.
363+
/// Spawns an [`Entity`] with no components and inserts it into the children defined by the [`WorldChildBuilder`] which adds the [`Parent`] component to it.
364364
pub fn spawn_empty(&mut self) -> EntityMut<'_> {
365365
let entity = self.world.spawn(Parent(self.parent)).id();
366366
push_child_unchecked(self.world, self.parent, entity);

crates/bevy_transform/src/commands.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
//! Extension to [`EntityCommands`] to change hierarchy while preserving [`GlobalTransform`].
1+
//! Extension to [`EntityCommands`] to modify [`bevy_hierarchy`] hierarchies
2+
//! while preserving [`GlobalTransform`].
23
34
use bevy_ecs::{prelude::Entity, system::Command, system::EntityCommands, world::World};
45
use bevy_hierarchy::{AddChild, RemoveParent};

0 commit comments

Comments
 (0)