From 03c545056cdd9a26e793e38cd1f693b43f543deb Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Mon, 20 Feb 2023 23:36:28 +0000 Subject: [PATCH] Fix some more typos (#7767) # Objective I managed to dig up some more typos with a combination of the "[code spell checker](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker)" and "[open folder](https://marketplace.visualstudio.com/items?itemName=rwu823.open-folder)" vscode extensions. ## Solution Fix em --- crates/bevy_ecs/examples/change_detection.rs | 2 +- crates/bevy_pbr/src/environment_map/mod.rs | 2 +- crates/bevy_pbr/src/light.rs | 2 +- .../bevy_reflect/bevy_reflect_derive/src/field_attributes.rs | 2 +- crates/bevy_render/src/view/visibility/mod.rs | 2 +- crates/bevy_text/src/text2d.rs | 2 +- crates/bevy_time/src/fixed_timestep.rs | 2 +- examples/ecs/run_conditions.rs | 4 ++-- examples/window/window_resizing.rs | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/crates/bevy_ecs/examples/change_detection.rs b/crates/bevy_ecs/examples/change_detection.rs index d936060170..03a9793318 100644 --- a/crates/bevy_ecs/examples/change_detection.rs +++ b/crates/bevy_ecs/examples/change_detection.rs @@ -99,7 +99,7 @@ fn remove_old_entities(mut commands: Commands, entities: Query<(Entity, &Age)>) } } -// This system will print the new counter value everytime it was changed since +// This system will print the new counter value every time it was changed since // the last execution of the system. fn print_counter_when_changed(entity_counter: Res) { if entity_counter.is_changed() { diff --git a/crates/bevy_pbr/src/environment_map/mod.rs b/crates/bevy_pbr/src/environment_map/mod.rs index 5e8b42196f..0b0250268b 100644 --- a/crates/bevy_pbr/src/environment_map/mod.rs +++ b/crates/bevy_pbr/src/environment_map/mod.rs @@ -36,7 +36,7 @@ impl Plugin for EnvironmentMapPlugin { /// /// When added to a 3D camera, this component adds indirect light /// to every point of the scene (including inside, enclosed areas) based on -/// an environment cubemap texture. This is similiar to [`crate::AmbientLight`], but +/// an environment cubemap texture. This is similar to [`crate::AmbientLight`], but /// higher quality, and is intended for outdoor scenes. /// /// The environment map must be prefiltered into a diffuse and specular cubemap based on the diff --git a/crates/bevy_pbr/src/light.rs b/crates/bevy_pbr/src/light.rs index d9599feb4c..afc35628ba 100644 --- a/crates/bevy_pbr/src/light.rs +++ b/crates/bevy_pbr/src/light.rs @@ -2173,7 +2173,7 @@ mod test { // check a smaller number of clusters would not cover the screen assert!(clusters.tile_size.x * (clusters.dimensions.x - 1) < screen_size.x); assert!(clusters.tile_size.y * (clusters.dimensions.y - 1) < screen_size.y); - // check a smaller tilesize would not cover the screen + // check a smaller tile size would not cover the screen assert!((clusters.tile_size.x - 1) * clusters.dimensions.x < screen_size.x); assert!((clusters.tile_size.y - 1) * clusters.dimensions.y < screen_size.y); // check we don't have more clusters than pixels diff --git a/crates/bevy_reflect/bevy_reflect_derive/src/field_attributes.rs b/crates/bevy_reflect/bevy_reflect_derive/src/field_attributes.rs index 0e19b8429e..6f63710cdc 100644 --- a/crates/bevy_reflect/bevy_reflect_derive/src/field_attributes.rs +++ b/crates/bevy_reflect/bevy_reflect_derive/src/field_attributes.rs @@ -39,7 +39,7 @@ impl ReflectIgnoreBehavior { } } - /// The exact logical opposite of `self.is_active()` returns true iff this member is not part of the reflection API whatsover (neither serialized nor reflected) + /// The exact logical opposite of `self.is_active()` returns true iff this member is not part of the reflection API whatsoever (neither serialized nor reflected) pub fn is_ignored(self) -> bool { !self.is_active() } diff --git a/crates/bevy_render/src/view/visibility/mod.rs b/crates/bevy_render/src/view/visibility/mod.rs index 361a90033d..ca5e8a9df2 100644 --- a/crates/bevy_render/src/view/visibility/mod.rs +++ b/crates/bevy_render/src/view/visibility/mod.rs @@ -211,7 +211,7 @@ impl Plugin for VisibilityPlugin { use VisibilitySystems::*; app.configure_set(CalculateBounds.in_base_set(CoreSet::PostUpdate)) - // We add an AABB component in CaclulateBounds, which must be ready on the same frame. + // We add an AABB component in CalculateBounds, which must be ready on the same frame. .add_system(apply_system_buffers.in_set(CalculateBoundsFlush)) .configure_set( CalculateBoundsFlush diff --git a/crates/bevy_text/src/text2d.rs b/crates/bevy_text/src/text2d.rs index f39924b2cc..26ecf5796a 100644 --- a/crates/bevy_text/src/text2d.rs +++ b/crates/bevy_text/src/text2d.rs @@ -68,7 +68,7 @@ pub struct Text2dBundle { pub transform: Transform, /// The global transform of the text. pub global_transform: GlobalTransform, - /// The visbility properties of the text. + /// The visibility properties of the text. pub visibility: Visibility, /// Algorithmically-computed indication of whether an entity is visible and should be extracted for rendering. pub computed_visibility: ComputedVisibility, diff --git a/crates/bevy_time/src/fixed_timestep.rs b/crates/bevy_time/src/fixed_timestep.rs index c410c9ac45..51372154a4 100644 --- a/crates/bevy_time/src/fixed_timestep.rs +++ b/crates/bevy_time/src/fixed_timestep.rs @@ -65,7 +65,7 @@ impl FixedTime { /// Expends one `period` of accumulated time. /// - /// [`Err(FixedTimstepError`)] will be returned + /// [`Err(FixedUpdateError`)] will be returned pub fn expend(&mut self) -> Result<(), FixedUpdateError> { if let Some(new_value) = self.accumulated.checked_sub(self.period) { self.accumulated = new_value; diff --git a/examples/ecs/run_conditions.rs b/examples/ecs/run_conditions.rs index 4cd43b2149..76a13319b8 100644 --- a/examples/ecs/run_conditions.rs +++ b/examples/ecs/run_conditions.rs @@ -82,8 +82,8 @@ fn time_passed(t: f32) -> impl FnMut(Local, Res