Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrankel committed Aug 6, 2024
1 parent fbbefcc commit 57f951d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/spawn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub mod prelude {
pub use super::{AddExt as _, SpawnExt as _, WorldSpawnExt as _};
}

/// An extension trait that provides helper functions for deferred entity spawning.
/// An extension trait to support spawning an entity from an [`EntityCommand`].
pub trait SpawnExt {
// Workaround for https://github.com/bevyengine/bevy/issues/14231#issuecomment-2216321086.
/// Spawn an entity with an [`EntityCommand`].
Expand All @@ -36,10 +36,10 @@ impl SpawnExt for ChildBuilder<'_> {
}
}

/// An extension trait that provides helper functions for immediate entity spawning.
/// An extension trait to support immediately spawning an entity from an [`EntityCommand`].
pub trait WorldSpawnExt {
// Workaround for https://github.com/bevyengine/bevy/issues/14231#issuecomment-2216321086.
/// Spawn an entity with an [`EntityCommand`].
/// Immediately spawn an entity with an [`EntityCommand`].
fn spawn_with<M: 'static>(&mut self, command: impl EntityCommand<M>) -> EntityWorldMut;
}

Expand All @@ -59,7 +59,7 @@ impl WorldSpawnExt for WorldChildBuilder<'_> {
}
}

/// An extension trait that supports arbitrary [`EntityCommand`]s after `world.spawn()`.
/// An extension trait to support adding [`EntityCommand`]s after `world.spawn()`.
pub trait AddExt {
// Workaround for https://github.com/bevyengine/bevy/issues/14278.
/// Apply an [`EntityCommand`] to the current entity.
Expand Down

0 comments on commit 57f951d

Please sign in to comment.