Skip to content

Commit

Permalink
Fix minor doc issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nicopap committed Apr 27, 2022
1 parent c033ee7 commit d1aec75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/bevy_scene/src/scene_spawner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ impl SceneSpawner {
///
/// This will remove the scene and all its related entities from the world.
/// The world will be updated before this method returns. Requires
/// exclusive world acces through [`&mut World`].
/// exclusive world acces through `&mut World`.
///
/// [`SceneSpawner::despawn`] does the same thing, but does not require
/// exclusive world access, it will update the world when
Expand Down Expand Up @@ -262,7 +262,7 @@ impl SceneSpawner {
Ok(())
}

/// Manually despawn scenes marked for elimination
/// Manually despawn scenes marked for elimination.
pub fn despawn_queued_scenes(&mut self, world: &mut World) -> Result<(), SceneSpawnError> {
let scenes_to_despawn = std::mem::take(&mut self.scenes_to_despawn);

Expand All @@ -272,7 +272,7 @@ impl SceneSpawner {
Ok(())
}

/// Manually spawn scenes marked for creation
/// Manually spawn scenes marked for creation.
pub fn spawn_queued_scenes(&mut self, world: &mut World) -> Result<(), SceneSpawnError> {
let scenes_to_spawn = std::mem::take(&mut self.scenes_to_spawn);
for (scene_handle, instance_id) in scenes_to_spawn {
Expand Down

0 comments on commit d1aec75

Please sign in to comment.