From c425c32064b81b8bf23f882c97f818309c48bded Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Sat, 30 Nov 2024 11:28:53 -0800 Subject: [PATCH] Fix a couple typos (#16573) # Objective Fix typo reported on [discord](https://discord.com/channels/691052431525675048/743559241461399582/1312485153284558932). ## Solution - Search for "will can." - Fix typo - Fix another related typo --- crates/bevy_ecs/src/storage/blob_array.rs | 2 +- crates/bevy_ecs/src/traversal.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_ecs/src/storage/blob_array.rs b/crates/bevy_ecs/src/storage/blob_array.rs index e6aefdb4b7dd4..c508b78c9853c 100644 --- a/crates/bevy_ecs/src/storage/blob_array.rs +++ b/crates/bevy_ecs/src/storage/blob_array.rs @@ -413,7 +413,7 @@ impl BlobArray { self.get_unchecked_mut(index_to_keep).promote() } - /// This method will can [`Self::swap_remove_unchecked`] and drop the result. + /// This method will call [`Self::swap_remove_unchecked`] and drop the result. /// /// # Safety /// - `index_to_keep` must be safe to access (within the bounds of the length of the array). diff --git a/crates/bevy_ecs/src/traversal.rs b/crates/bevy_ecs/src/traversal.rs index 16a92802fd524..3795883dfdb1b 100644 --- a/crates/bevy_ecs/src/traversal.rs +++ b/crates/bevy_ecs/src/traversal.rs @@ -9,7 +9,7 @@ use crate::{entity::Entity, query::ReadOnlyQueryData}; /// /// Infinite loops are possible, and are not checked for. While looping can be desirable in some contexts /// (for example, an observer that triggers itself multiple times before stopping), following an infinite -/// traversal loop without an eventual exit will can your application to hang. Each implementer of `Traversal` +/// traversal loop without an eventual exit will cause your application to hang. Each implementer of `Traversal` /// for documenting possible looping behavior, and consumers of those implementations are responsible for /// avoiding infinite loops in their code. ///