From c8e1d1dac14ed3ab823bb35bd4831c8c942ef31c Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Sat, 30 Nov 2024 11:47:09 -0700 Subject: [PATCH] Fix a couple typos --- 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. ///