Apply suggestions from code review

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
This commit is contained in:
Freyja-moth 2025-05-07 20:51:58 +01:00 committed by GitHub
parent cb8abaeaa5
commit 5dc8eaa784
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -133,9 +133,10 @@ impl<R: Relationship, F: FnOnce(&mut RelatedSpawner<R>) + 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;