Skip to content

Commit 03c5450

Browse files
committed
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
1 parent e6d60ad commit 03c5450

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

crates/bevy_ecs/examples/change_detection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ fn remove_old_entities(mut commands: Commands, entities: Query<(Entity, &Age)>)
9999
}
100100
}
101101

102-
// This system will print the new counter value everytime it was changed since
102+
// This system will print the new counter value every time it was changed since
103103
// the last execution of the system.
104104
fn print_counter_when_changed(entity_counter: Res<EntityCounter>) {
105105
if entity_counter.is_changed() {

crates/bevy_pbr/src/environment_map/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl Plugin for EnvironmentMapPlugin {
3636
///
3737
/// When added to a 3D camera, this component adds indirect light
3838
/// to every point of the scene (including inside, enclosed areas) based on
39-
/// an environment cubemap texture. This is similiar to [`crate::AmbientLight`], but
39+
/// an environment cubemap texture. This is similar to [`crate::AmbientLight`], but
4040
/// higher quality, and is intended for outdoor scenes.
4141
///
4242
/// The environment map must be prefiltered into a diffuse and specular cubemap based on the

crates/bevy_pbr/src/light.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,7 @@ mod test {
21732173
// check a smaller number of clusters would not cover the screen
21742174
assert!(clusters.tile_size.x * (clusters.dimensions.x - 1) < screen_size.x);
21752175
assert!(clusters.tile_size.y * (clusters.dimensions.y - 1) < screen_size.y);
2176-
// check a smaller tilesize would not cover the screen
2176+
// check a smaller tile size would not cover the screen
21772177
assert!((clusters.tile_size.x - 1) * clusters.dimensions.x < screen_size.x);
21782178
assert!((clusters.tile_size.y - 1) * clusters.dimensions.y < screen_size.y);
21792179
// check we don't have more clusters than pixels

crates/bevy_reflect/bevy_reflect_derive/src/field_attributes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl ReflectIgnoreBehavior {
3939
}
4040
}
4141

42-
/// 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)
42+
/// 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)
4343
pub fn is_ignored(self) -> bool {
4444
!self.is_active()
4545
}

crates/bevy_render/src/view/visibility/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ impl Plugin for VisibilityPlugin {
211211
use VisibilitySystems::*;
212212

213213
app.configure_set(CalculateBounds.in_base_set(CoreSet::PostUpdate))
214-
// We add an AABB component in CaclulateBounds, which must be ready on the same frame.
214+
// We add an AABB component in CalculateBounds, which must be ready on the same frame.
215215
.add_system(apply_system_buffers.in_set(CalculateBoundsFlush))
216216
.configure_set(
217217
CalculateBoundsFlush

crates/bevy_text/src/text2d.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub struct Text2dBundle {
6868
pub transform: Transform,
6969
/// The global transform of the text.
7070
pub global_transform: GlobalTransform,
71-
/// The visbility properties of the text.
71+
/// The visibility properties of the text.
7272
pub visibility: Visibility,
7373
/// Algorithmically-computed indication of whether an entity is visible and should be extracted for rendering.
7474
pub computed_visibility: ComputedVisibility,

crates/bevy_time/src/fixed_timestep.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl FixedTime {
6565

6666
/// Expends one `period` of accumulated time.
6767
///
68-
/// [`Err(FixedTimstepError`)] will be returned
68+
/// [`Err(FixedUpdateError`)] will be returned
6969
pub fn expend(&mut self) -> Result<(), FixedUpdateError> {
7070
if let Some(new_value) = self.accumulated.checked_sub(self.period) {
7171
self.accumulated = new_value;

examples/ecs/run_conditions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ fn time_passed(t: f32) -> impl FnMut(Local<f32>, Res<Time>) -> bool {
8282

8383
/// SYSTEM: Increment the input counter
8484
/// Notice how we can take just the `ResMut` and not have to wrap
85-
/// it in an option incase it hasen't been initialized, this is becuase
86-
/// it has a run codition that checks if the `InputCounter` resource exsists
85+
/// it in an option in case it hasn't been initialized, this is because
86+
/// it has a run condition that checks if the `InputCounter` resource exists
8787
fn increment_input_counter(mut counter: ResMut<InputCounter>) {
8888
counter.0 += 1;
8989
}

examples/window/window_resizing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fn main() {
1616
.run();
1717
}
1818

19-
/// Marker component for the text that displays the current reslution.
19+
/// Marker component for the text that displays the current resolution.
2020
#[derive(Component)]
2121
struct ResolutionText;
2222

0 commit comments

Comments
 (0)