From d1aec754f0cdcc6385be21e2d092a1e1fa54cf28 Mon Sep 17 00:00:00 2001 From: Nicola Papale Date: Fri, 22 Apr 2022 09:38:33 +0200 Subject: [PATCH] Fix minor doc issues --- crates/bevy_scene/src/scene_spawner.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/bevy_scene/src/scene_spawner.rs b/crates/bevy_scene/src/scene_spawner.rs index 2222f8fa6886d1..eb0fb58f34b926 100644 --- a/crates/bevy_scene/src/scene_spawner.rs +++ b/crates/bevy_scene/src/scene_spawner.rs @@ -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 @@ -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); @@ -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 {