Skip to content

Commit 3281aea

Browse files
committed
Fix minor typos in code and docs (#7378)
# Objective I found several words in code and docs are incorrect. This should be fixed. ## Solution - Fix several minor typos Co-authored-by: Chris Ohk <utilforever@gmail.com>
1 parent 70e5117 commit 3281aea

File tree

31 files changed

+45
-45
lines changed

31 files changed

+45
-45
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Some things that are reason to apply the [`S-Controversial`] label to a PR:
103103

104104
Some things that are reason to apply the [`D-Complex`] label to a PR:
105105

106-
1. Introduction or modification of soundness relevent code (for example `unsafe` code)
106+
1. Introduction or modification of soundness relevant code (for example `unsafe` code)
107107
2. High levels of technical complexity.
108108
3. Large-scale code reorganization
109109

@@ -324,7 +324,7 @@ If you're new to Bevy, here's the workflow we use:
324324
* `cargo run -p ci -- test` - to run tests
325325
* `cargo run -p ci -- doc` - to run doc tests and doc checks
326326
* `cargo run -p ci -- compile` - to check that everything that must compile still does (examples and benches), and that some that shouldn't still don't ([`crates/bevy_ecs_compile_fail_tests`](./crates/bevy_ecs_compile_fail_tests))
327-
* to get more informations on commands available and what is run, check the [tools/ci crate](./tools/ci)
327+
* to get more information on commands available and what is run, check the [tools/ci crate](./tools/ci)
328328

329329
4. When working with Markdown (`.md`) files, Bevy's CI will check markdown files (like this one) using [markdownlint](https://github.com/DavidAnson/markdownlint).
330330
To locally lint your files using the same workflow as our CI:

crates/bevy_animation/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ fn apply_animation(
468468
// any of their descendant Transforms.
469469
//
470470
// The system scheduler prevents any other system from mutating Transforms at the same time,
471-
// so the only way this fetch can alias is if two AnimationPlayers are targetting the same bone.
471+
// so the only way this fetch can alias is if two AnimationPlayers are targeting the same bone.
472472
// This can only happen if there are two or more AnimationPlayers are ancestors to the same
473473
// entities. By verifying that there is no other AnimationPlayer in the ancestors of a
474474
// running AnimationPlayer before animating any entity, this fetch cannot alias.

crates/bevy_ecs/src/archetype.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl ArchetypeRow {
6464
/// Archetype IDs are only valid for a given World, and are not globally unique.
6565
/// Attempting to use an archetype ID on a world that it wasn't sourced from will
6666
/// not return the archetype with the same components. The only exception to this is
67-
/// [`EMPTY`] which is guarenteed to be identical for all Worlds.
67+
/// [`EMPTY`] which is guaranteed to be identical for all Worlds.
6868
///
6969
/// [`World`]: crate::world::World
7070
/// [`EMPTY`]: crate::archetype::ArchetypeId::EMPTY

crates/bevy_ecs/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,7 @@ mod tests {
15361536
assert_eq!(4, query_min_size![&A, ()], "Simple Archetypal");
15371537
assert_eq!(4, query_min_size![ChangeTrackers<A>, ()],);
15381538
// All the following should set minimum size to 0, as it's impossible to predict
1539-
// how many entites the filters will trim.
1539+
// how many entities the filters will trim.
15401540
assert_eq!(0, query_min_size![(), Added<A>], "Simple Added");
15411541
assert_eq!(0, query_min_size![(), Changed<A>], "Simple Changed");
15421542
assert_eq!(0, query_min_size![(&A, &B), Changed<A>],);
@@ -1616,7 +1616,7 @@ mod tests {
16161616
assert_eq!(
16171617
world_b.get::<B>(high_non_existent_entity),
16181618
Some(&B(10)),
1619-
"inserting into newly allocated high / non-continous entity id works"
1619+
"inserting into newly allocated high / non-continuous entity id works"
16201620
);
16211621

16221622
let high_non_existent_but_reserved_entity = Entity::new(5, 0);

crates/bevy_ecs/src/schedule/stage.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,7 @@ mod tests {
15371537
#[derive(Component)]
15381538
struct Foo;
15391539

1540-
fn even_number_of_entities_critiera(query: Query<&Foo>) -> ShouldRun {
1540+
fn even_number_of_entities_criteria(query: Query<&Foo>) -> ShouldRun {
15411541
if query.iter().len() % 2 == 0 {
15421542
ShouldRun::Yes
15431543
} else {
@@ -1562,7 +1562,7 @@ mod tests {
15621562
.with_system(spawn_entity.label(Spawn))
15631563
.with_system_set(
15641564
SystemSet::new()
1565-
.with_run_criteria(even_number_of_entities_critiera)
1565+
.with_run_criteria(even_number_of_entities_criteria)
15661566
.with_system(count_entities.before(Spawn)),
15671567
);
15681568
stage.run(&mut world);
@@ -1579,7 +1579,7 @@ mod tests {
15791579
#[derive(Component)]
15801580
struct Foo;
15811581

1582-
fn even_number_of_entities_critiera(query: Query<&Foo>) -> ShouldRun {
1582+
fn even_number_of_entities_criteria(query: Query<&Foo>) -> ShouldRun {
15831583
if query.iter().len() % 2 == 0 {
15841584
ShouldRun::Yes
15851585
} else {
@@ -1599,7 +1599,7 @@ mod tests {
15991599
world.init_resource::<EntityCount>();
16001600
let mut stage_spawn = SystemStage::parallel().with_system(spawn_entity);
16011601
let mut stage_count = SystemStage::parallel()
1602-
.with_run_criteria(even_number_of_entities_critiera)
1602+
.with_run_criteria(even_number_of_entities_criteria)
16031603
.with_system(count_entities);
16041604
stage_count.run(&mut world);
16051605
stage_spawn.run(&mut world);

crates/bevy_ecs/src/schedule_v3/schedule.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,8 +519,8 @@ impl ScheduleGraph {
519519

520520
match ambiguous_with {
521521
Ambiguity::Check => (),
522-
Ambiguity::IgnoreWithSet(ambigous_with) => {
523-
for set in ambigous_with
522+
Ambiguity::IgnoreWithSet(ambiguous_with) => {
523+
for set in ambiguous_with
524524
.into_iter()
525525
.map(|set| self.system_set_ids[&set])
526526
{

crates/bevy_ecs/src/system/commands/command_queue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ impl CommandQueue {
102102
// so this addition will not overflow its original allocation.
103103
let cmd = unsafe { self.bytes.as_mut_ptr().add(meta.offset) };
104104
// SAFETY: It is safe to transfer ownership out of `self.bytes`, since the call to `set_len(0)` above
105-
// gaurantees that nothing stored in the buffer will get observed after this function ends.
105+
// guarantees that nothing stored in the buffer will get observed after this function ends.
106106
// `cmd` points to a valid address of a stored command, so it must be non-null.
107107
let cmd = unsafe { OwningPtr::new(NonNull::new_unchecked(cmd.cast())) };
108108
// SAFETY: The underlying type of `cmd` matches the type expected by `meta.apply_command`.

crates/bevy_input/src/keyboard.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ pub enum KeyCode {
281281
Apostrophe,
282282
/// The `Apps` key.
283283
Apps,
284-
/// The `Asterik` / `*` key.
284+
/// The `Asterisk` / `*` key.
285285
Asterisk,
286286
/// The `Plus` / `+` key.
287287
Plus,

crates/bevy_pbr/src/light.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ impl Default for PointLightShadowMap {
8888
}
8989

9090
/// A light that emits light in a given direction from a central point.
91-
/// Behaves like a point light in a perfectly absorbant housing that
91+
/// Behaves like a point light in a perfectly absorbent housing that
9292
/// shines light only in a given direction. The direction is taken from
9393
/// the transform, and can be specified with [`Transform::looking_at`](bevy_transform::components::Transform::looking_at).
9494
#[derive(Component, Debug, Clone, Copy, Reflect)]

crates/bevy_pbr/src/pbr_material.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ pub struct StandardMaterial {
190190
/// When a triangle is in a viewport,
191191
/// if its vertices appear counter-clockwise from the viewport's perspective,
192192
/// then the viewport is seeing the triangle's front face.
193-
/// Conversly, if the vertices appear clockwise, you are seeing the back face.
193+
/// Conversely, if the vertices appear clockwise, you are seeing the back face.
194194
///
195195
/// In short, in bevy, front faces winds counter-clockwise.
196196
///

0 commit comments

Comments
 (0)