Skip to content

Commit

Permalink
docs: update docs for Spawn composable
Browse files Browse the repository at this point in the history
  • Loading branch information
matthunz committed Dec 3, 2024
1 parent c8d33fd commit 205b88a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ecs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,9 @@ type ObserverFn<'a> = Box<dyn Fn(&mut EntityWorldMut) + 'a>;

type OnAddFn<'a> = Box<dyn FnOnce(EntityWorldMut) + 'a>;

/// Spawn composable with content.
/// Composable to spawn an entity.
///
/// See [`spawn`] and [`spawn_with`] for more information.
/// See [`spawn`] for more information.
#[must_use = "Composables do nothing unless composed or returned from other composables."]
pub struct Spawn<'a, C> {
spawn_fn: SpawnFn,
Expand Down

0 comments on commit 205b88a

Please sign in to comment.