From 5dc8eaa78498499cf5d370e0df0f8ea9d7ac9c08 Mon Sep 17 00:00:00 2001 From: Freyja-moth <156322843+Freyja-moth@users.noreply.github.com> Date: Wed, 7 May 2025 20:51:58 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Alice Cecile --- crates/bevy_ecs/src/spawn.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/bevy_ecs/src/spawn.rs b/crates/bevy_ecs/src/spawn.rs index 091a5ea134..a201205c3f 100644 --- a/crates/bevy_ecs/src/spawn.rs +++ b/crates/bevy_ecs/src/spawn.rs @@ -133,9 +133,10 @@ impl) + Send + Sync + 'static> } } -/// A [`SpawnableList`] that adds entities using an iterator of [`Entity`]: +/// A [`SpawnableList`] that links already spawned entities to the root entity via relations of type `I`. /// -/// useful if the entity has already been spawned earlier or if you spawn multiple relationships link to the same entity at the same time. +/// This is useful if the entity has already been spawned earlier or if you spawn multiple relationships link to the same entity at the same time. +/// If you only need to do this for a single entity, consider using [`WithOneRelated`]. /// /// ``` /// # use bevy_ecs::hierarchy::Children;