Skip to content

Commit

Permalink
Fix comment in example
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
  • Loading branch information
Alexander Stein committed Sep 8, 2024
1 parent 5cfcbf4 commit eab4604
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 eab4604

Please sign in to comment.