Skip to content

Commit

Permalink
Fix comment in example (#15096)
Browse files Browse the repository at this point in the history
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 <alexander.stein@mailbox.org>
  • Loading branch information
AlexanderStein and Alexander Stein authored Sep 8, 2024
1 parent 5cfcbf4 commit bbecc05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ecs/hierarchy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
// Store parent entity for next sections
.id();

// Another way is to use the push_children function to add children after the parent
// Another way is to use the add_child function to add children after the parent
// entity has already been spawned.
let child = commands
.spawn(SpriteBundle {
Expand Down

0 comments on commit bbecc05

Please sign in to comment.