From bbecc05da98ef8a6f48942bdfaed1109b3249626 Mon Sep 17 00:00:00 2001 From: Alexander Stein Date: Sun, 8 Sep 2024 18:59:37 +0200 Subject: [PATCH] Fix comment in example (#15096) Commit 65252bb87 (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 --- examples/ecs/hierarchy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ecs/hierarchy.rs b/examples/ecs/hierarchy.rs index b61f21f24ae94..2729b63b3eb88 100644 --- a/examples/ecs/hierarchy.rs +++ b/examples/ecs/hierarchy.rs @@ -40,7 +40,7 @@ fn setup(mut commands: Commands, asset_server: Res) { // 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 {