Skip to content

Commit ffc5727

Browse files
authored
Fix typos throughout the project (#9090)
# Objective Fix typos throughout the project. ## Solution [`typos`](https://github.com/crate-ci/typos) project was used for scanning, but no automatic corrections were applied. I checked everything by hand before fixing. Most of the changes are documentation/comments corrections. Also, there are few trivial changes to code (variable name, pub(crate) function name and a few error/panic messages). ## Unsolved `bevy_reflect_derive` has [typo](https://github.com/ClayenKitten/bevy/blob/1b51053f1958d750cdddffb99828bd0aacb61a78/crates/bevy_reflect/bevy_reflect_derive/src/type_path.rs#L76) in enum variant name that I didn't fix. Enum is `pub(crate)`, so there shouldn't be any trouble if fixed. However, code is tightly coupled with macro usage, so I decided to leave it for more experienced contributor just in case.
1 parent 8ba9571 commit ffc5727

File tree

40 files changed

+67
-67
lines changed

40 files changed

+67
-67
lines changed

crates/bevy_app/src/main_schedule.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub struct First;
4848

4949
/// The schedule that contains logic that must run before [`Update`]. For example, a system that reads raw keyboard
5050
/// input OS events into an `Events` resource. This enables systems in [`Update`] to consume the events from the `Events`
51-
/// resource without actually knowing about (or taking a direct scheduler dependency on) the "os-level keyboard event sytsem".
51+
/// resource without actually knowing about (or taking a direct scheduler dependency on) the "os-level keyboard event system".
5252
///
5353
/// [`PreUpdate`] exists to do "engine/plugin preparation work" that ensures the APIs consumed in [`Update`] are "ready".
5454
/// [`PreUpdate`] abstracts out "pre work implementation details".

crates/bevy_core_pipeline/src/bloom/settings.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ impl BloomSettings {
119119
composite_mode: BloomCompositeMode::EnergyConserving,
120120
};
121121

122-
/// A preset that's similiar to how older games did bloom.
122+
/// A preset that's similar to how older games did bloom.
123123
pub const OLD_SCHOOL: Self = Self {
124124
intensity: 0.05,
125125
low_frequency_boost: 0.7,
@@ -159,7 +159,7 @@ impl Default for BloomSettings {
159159
/// # Considerations
160160
/// * Changing these settings creates a physically inaccurate image
161161
/// * Changing these settings makes it easy to make the final result look worse
162-
/// * Non-default prefilter settings should be used in conjuction with [`BloomCompositeMode::Additive`]
162+
/// * Non-default prefilter settings should be used in conjunction with [`BloomCompositeMode::Additive`]
163163
#[derive(Default, Clone, Reflect)]
164164
pub struct BloomPrefilterSettings {
165165
/// Baseline of the quadratic threshold curve (default: 0.0).

crates/bevy_core_pipeline/src/taa/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ pub struct TemporalAntiAliasSettings {
148148
/// Set to true to delete the saved temporal history (past frames).
149149
///
150150
/// Useful for preventing ghosting when the history is no longer
151-
/// representive of the current frame, such as in sudden camera cuts.
151+
/// representative of the current frame, such as in sudden camera cuts.
152152
///
153153
/// After setting this to true, it will automatically be toggled
154154
/// back to false after one frame.

crates/bevy_ecs/macros/src/component.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ fn parse_component_attr(ast: &DeriveInput) -> Result<Attrs> {
101101
};
102102
Ok(())
103103
} else {
104-
Err(nested.error("Unsuported attribute"))
104+
Err(nested.error("Unsupported attribute"))
105105
}
106106
})?;
107107
}

crates/bevy_ecs/src/entity/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ mod tests {
905905

906906
assert!(entities.reserve_generations(entity.index, GENERATIONS));
907907

908-
// The very next entitiy allocated should be a further generation on the same index
908+
// The very next entity allocated should be a further generation on the same index
909909
let next_entity = entities.alloc();
910910
assert_eq!(next_entity.index(), entity.index());
911911
assert!(next_entity.generation > entity.generation + GENERATIONS);

crates/bevy_ecs/src/reflect/map_entities.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::{
66
use bevy_reflect::FromType;
77

88
/// For a specific type of component, this maps any fields with values of type [`Entity`] to a new world.
9-
/// Since a given `Entity` ID is only valid for the world it came frome, when performing deserialization
9+
/// Since a given `Entity` ID is only valid for the world it came from, when performing deserialization
1010
/// any stored IDs need to be re-allocated in the destination world.
1111
///
1212
/// See [`MapEntities`] for more information.

crates/bevy_ecs/src/schedule/condition.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ pub mod common_conditions {
246246
/// # let mut app = Schedule::new();
247247
/// # let mut world = World::new();
248248
/// app.add_systems(
249-
/// // `resource_exsists` will only return true if the given resource exsists in the world
249+
/// // `resource_exists` will only return true if the given resource exists in the world
250250
/// my_system.run_if(resource_exists::<Counter>()),
251251
/// );
252252
///
@@ -324,7 +324,7 @@ pub mod common_conditions {
324324
/// # let mut world = World::new();
325325
/// app.add_systems(
326326
/// // `resource_exists_and_equals` will only return true
327-
/// // if the given resource exsists and equals the given value
327+
/// // if the given resource exists and equals the given value
328328
/// my_system.run_if(resource_exists_and_equals(Counter(0))),
329329
/// );
330330
///
@@ -422,7 +422,7 @@ pub mod common_conditions {
422422
/// my_system.run_if(
423423
/// resource_changed::<Counter>()
424424
/// // By default detecting changes will also trigger if the resource was
425-
/// // just added, this won't work with my example so I will addd a second
425+
/// // just added, this won't work with my example so I will add a second
426426
/// // condition to make sure the resource wasn't just added
427427
/// .and_then(not(resource_added::<Counter>()))
428428
/// ),
@@ -471,11 +471,11 @@ pub mod common_conditions {
471471
/// # let mut world = World::new();
472472
/// app.add_systems(
473473
/// // `resource_exists_and_changed` will only return true if the
474-
/// // given resource exsists and was just changed (or added)
474+
/// // given resource exists and was just changed (or added)
475475
/// my_system.run_if(
476476
/// resource_exists_and_changed::<Counter>()
477477
/// // By default detecting changes will also trigger if the resource was
478-
/// // just added, this won't work with my example so I will addd a second
478+
/// // just added, this won't work with my example so I will add a second
479479
/// // condition to make sure the resource wasn't just added
480480
/// .and_then(not(resource_added::<Counter>()))
481481
/// ),
@@ -537,7 +537,7 @@ pub mod common_conditions {
537537
/// my_system.run_if(
538538
/// resource_changed_or_removed::<Counter>()
539539
/// // By default detecting changes will also trigger if the resource was
540-
/// // just added, this won't work with my example so I will addd a second
540+
/// // just added, this won't work with my example so I will add a second
541541
/// // condition to make sure the resource wasn't just added
542542
/// .and_then(not(resource_added::<Counter>()))
543543
/// ),
@@ -665,7 +665,7 @@ pub mod common_conditions {
665665
///
666666
/// app.add_systems(
667667
/// // `state_exists` will only return true if the
668-
/// // given state exsists
668+
/// // given state exists
669669
/// my_system.run_if(state_exists::<GameState>()),
670670
/// );
671671
///
@@ -764,7 +764,7 @@ pub mod common_conditions {
764764
///
765765
/// app.add_systems((
766766
/// // `state_exists_and_equals` will only return true if the
767-
/// // given state exsists and equals the given value
767+
/// // given state exists and equals the given value
768768
/// play_system.run_if(state_exists_and_equals(GameState::Playing)),
769769
/// pause_system.run_if(state_exists_and_equals(GameState::Paused)),
770770
/// ));

crates/bevy_ecs/src/schedule/executor/multi_threaded.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ impl MultiThreadedExecutor {
476476
/// - `world` must have permission to access the world data
477477
/// used by the specified system.
478478
/// - `update_archetype_component_access` must have been called with `world`
479-
/// on the system assocaited with `system_index`.
479+
/// on the system associated with `system_index`.
480480
unsafe fn spawn_system_task<'scope>(
481481
&mut self,
482482
scope: &Scope<'_, 'scope, ()>,

crates/bevy_ecs/src/schedule/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ mod tests {
239239
partially_ordered == [8, 9, 10] || partially_ordered == [10, 8, 9],
240240
"partially_ordered must be [8, 9, 10] or [10, 8, 9]"
241241
);
242-
assert!(order.len() == 11, "must have exacty 11 order entries");
242+
assert!(order.len() == 11, "must have exactly 11 order entries");
243243
}
244244
}
245245

crates/bevy_ecs/src/storage/table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ impl TableRow {
9494
}
9595
}
9696

97-
/// A type-erased contiguous container for data of a homogenous type.
97+
/// A type-erased contiguous container for data of a homogeneous type.
9898
///
9999
/// Conceptually, a [`Column`] is very similar to a type-erased `Vec<T>`.
100100
/// It also stores the change detection ticks for its components, kept in two separate

0 commit comments

Comments
 (0)