Skip to content

Commit 8316166

Browse files
authored
Fix uses of "it's" vs "its". (#13033)
Grammar changes only.
1 parent 2ad27ee commit 8316166

File tree

23 files changed

+37
-37
lines changed

23 files changed

+37
-37
lines changed

crates/bevy_asset/src/processor/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ impl AssetProcessor {
408408
infos.remove(&asset_path).await;
409409
}
410410

411-
/// Handles a renamed source asset by moving it's processed results to the new location and updating in-memory paths + metadata.
411+
/// Handles a renamed source asset by moving its processed results to the new location and updating in-memory paths + metadata.
412412
/// This will cause direct path dependencies to break.
413413
async fn handle_renamed_asset(&self, source: &AssetSource, old: PathBuf, new: PathBuf) {
414414
let mut infos = self.data.asset_infos.write().await;

crates/bevy_ecs/examples/resources.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! In this example we add a counter resource and increase it's value in one system,
1+
//! In this example we add a counter resource and increase its value in one system,
22
//! while a different system prints the current count to the console.
33
44
use bevy_ecs::prelude::*;

crates/bevy_ecs/src/bundle.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ pub trait DynamicBundle {
178178

179179
// SAFETY:
180180
// - `Bundle::component_ids` calls `ids` for C's component id (and nothing else)
181-
// - `Bundle::get_components` is called exactly once for C and passes the component's storage type based on it's associated constant.
181+
// - `Bundle::get_components` is called exactly once for C and passes the component's storage type based on its associated constant.
182182
// - `Bundle::from_components` calls `func` exactly once for C, which is the exact value returned by `Bundle::component_ids`.
183183
unsafe impl<C: Component> Bundle for C {
184184
fn component_ids(
@@ -990,10 +990,10 @@ impl Bundles {
990990
T::component_ids(components, storages, &mut |id| component_ids.push(id));
991991
let id = BundleId(bundle_infos.len());
992992
let bundle_info =
993-
// SAFETY: T::component_id ensures its:
994-
// - info was created
993+
// SAFETY: T::component_id ensures:
994+
// - its info was created
995995
// - appropriate storage for it has been initialized.
996-
// - was created in the same order as the components in T
996+
// - it was created in the same order as the components in T
997997
unsafe { BundleInfo::new(std::any::type_name::<T>(), components, component_ids, id) };
998998
bundle_infos.push(bundle_info);
999999
id

crates/bevy_ecs/src/component.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ pub trait Component: Send + Sync + 'static {
154154
/// A constant indicating the storage type used for this component.
155155
const STORAGE_TYPE: StorageType;
156156

157-
/// Called when registering this component, allowing mutable access to it's [`ComponentHooks`].
157+
/// Called when registering this component, allowing mutable access to its [`ComponentHooks`].
158158
fn register_component_hooks(_hooks: &mut ComponentHooks) {}
159159
}
160160

@@ -182,7 +182,7 @@ pub enum StorageType {
182182
/// The type used for [`Component`] lifecycle hooks such as `on_add`, `on_insert` or `on_remove`
183183
pub type ComponentHook = for<'w> fn(DeferredWorld<'w>, Entity, ComponentId);
184184

185-
/// Lifecycle hooks for a given [`Component`], stored in it's [`ComponentInfo`]
185+
/// Lifecycle hooks for a given [`Component`], stored in its [`ComponentInfo`]
186186
#[derive(Debug, Clone, Default)]
187187
pub struct ComponentHooks {
188188
pub(crate) on_add: Option<ComponentHook>,
@@ -193,7 +193,7 @@ pub struct ComponentHooks {
193193
impl ComponentHooks {
194194
/// Register a [`ComponentHook`] that will be run when this component is added to an entity.
195195
/// An `on_add` hook will always run before `on_insert` hooks. Spawning an entity counts as
196-
/// adding all of it's components.
196+
/// adding all of its components.
197197
///
198198
/// Will panic if the component already has an `on_add` hook
199199
pub fn on_add(&mut self, hook: ComponentHook) -> &mut Self {
@@ -212,7 +212,7 @@ impl ComponentHooks {
212212
}
213213

214214
/// Register a [`ComponentHook`] that will be run when this component is removed from an entity.
215-
/// Despawning an entity counts as removing all of it's components.
215+
/// Despawning an entity counts as removing all of its components.
216216
///
217217
/// Will panic if the component already has an `on_remove` hook
218218
pub fn on_remove(&mut self, hook: ComponentHook) -> &mut Self {

crates/bevy_ecs/src/query/state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ impl<D: QueryData, F: QueryFilter> QueryState<D, F> {
171171

172172
/// Creates a new [`QueryState`] but does not populate it with the matched results from the World yet
173173
///
174-
/// `new_archetype` and it's variants must be called on all of the World's archetypes before the
174+
/// `new_archetype` and its variants must be called on all of the World's archetypes before the
175175
/// state can return valid query results.
176176
fn new_uninitialized(world: &mut World) -> Self {
177177
let fetch_state = D::init_state(world);
@@ -208,7 +208,7 @@ impl<D: QueryData, F: QueryFilter> QueryState<D, F> {
208208
}
209209
}
210210

211-
/// Creates a new [`QueryState`] from a given [`QueryBuilder`] and inherits it's [`FilteredAccess`].
211+
/// Creates a new [`QueryState`] from a given [`QueryBuilder`] and inherits its [`FilteredAccess`].
212212
pub fn from_builder(builder: &mut QueryBuilder<D, F>) -> Self {
213213
let mut fetch_state = D::init_state(builder.world_mut());
214214
let filter_state = F::init_state(builder.world_mut());

crates/bevy_ecs/src/storage/blob_vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ impl BlobVec {
165165
// - the layout of the ptr was `array_layout(self.item_layout, self.capacity)`
166166
// - `item_layout.size() > 0` and `new_capacity > 0`, so the layout size is non-zero
167167
// - "new_size, when rounded up to the nearest multiple of layout.align(), must not overflow (i.e., the rounded value must be less than usize::MAX)",
168-
// since the item size is always a multiple of its align, the rounding cannot happen
168+
// since the item size is always a multiple of its alignment, the rounding cannot happen
169169
// here and the overflow is handled in `array_layout`
170170
unsafe {
171171
std::alloc::realloc(

crates/bevy_ecs/src/storage/resource.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ impl<const SEND: bool> Resources<SEND> {
298298
self.resources.get_mut(component_id)
299299
}
300300

301-
/// Fetches or initializes a new resource and returns back it's underlying column.
301+
/// Fetches or initializes a new resource and returns back its underlying column.
302302
///
303303
/// # Panics
304304
/// Will panic if `component_id` is not valid for the provided `components`

crates/bevy_ecs/src/storage/table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ impl TableRow {
139139
/// Conceptually, a [`Column`] is very similar to a type-erased `Vec<T>`.
140140
/// It also stores the change detection ticks for its components, kept in two separate
141141
/// contiguous buffers internally. An element shares its data across these buffers by using the
142-
/// same index (i.e. the entity at row 3 has it's data at index 3 and its change detection ticks at
142+
/// same index (i.e. the entity at row 3 has its data at index 3 and its change detection ticks at
143143
/// index 3). A slice to these contiguous blocks of memory can be fetched
144144
/// via [`Column::get_data_slice`], [`Column::get_added_ticks_slice`], and
145145
/// [`Column::get_changed_ticks_slice`].

crates/bevy_ecs/src/system/query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,7 @@ impl<'w, 's, D: QueryData, F: QueryFilter> Query<'w, 's, D, F> {
13661366
) -> QueryLens<'_, NewD, NewF> {
13671367
// SAFETY:
13681368
// - We have exclusive access to the query
1369-
// - `self` has correctly captured it's access
1369+
// - `self` has correctly captured its access
13701370
// - Access is checked to be a subset of the query's access when the state is created.
13711371
let world = unsafe { self.world.world() };
13721372
let state = self.state.transmute_filtered::<NewD, NewF>(world);

crates/bevy_ecs/src/system/system.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ impl<In: 'static, Out: 'static> Debug for dyn System<In = In, Out = Out> {
176176
/// Trait used to run a system immediately on a [`World`].
177177
///
178178
/// # Warning
179-
/// This function is not an efficient method of running systems and its meant to be used as a utility
179+
/// This function is not an efficient method of running systems and it's meant to be used as a utility
180180
/// for testing and/or diagnostics.
181181
///
182182
/// Systems called through [`run_system_once`](RunSystemOnce::run_system_once) do not hold onto any state,

0 commit comments

Comments
 (0)