Skip to content

Commit bbecc05

Browse files
AlexanderSteinAlexander Stein
and
Alexander Stein
authored
Fix comment in example (#15096)
Commit 65252bb (Consistently use `PI` to specify angles in examples. (#5825)) changed from using push_children to add_child without adjusting the comment # Objective - Fix the comments to align with the code Co-authored-by: Alexander Stein <[email protected]>
1 parent 5cfcbf4 commit bbecc05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/ecs/hierarchy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
4040
// Store parent entity for next sections
4141
.id();
4242

43-
// Another way is to use the push_children function to add children after the parent
43+
// Another way is to use the add_child function to add children after the parent
4444
// entity has already been spawned.
4545
let child = commands
4646
.spawn(SpriteBundle {

0 commit comments

Comments
 (0)