From ed133e1ea9fca451ed8b06ea2c7d067990975bf6 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Fri, 9 Aug 2024 19:31:08 +0700 Subject: Fix more typos. (#712) These are ones not found by `typos` for various reasons. --- CHANGELOG.md | 2 +- src/counters/collision_detection_counters.rs | 2 +- src/counters/mod.rs | 2 +- src/data/coarena.rs | 4 ++-- src/dynamics/joint/multibody_joint/multibody_joint_set.rs | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dcd0010..9f109ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -96,7 +96,7 @@ This release introduces two new crates: - Rename `JointAxis::X/Y/Z` to `::LinX/LinY/LinZ` to avoid confusing it with `::AngX/AngY/AngZ`. - Rename `JointAxesMask::X/Y/Z` to `::LIN_X/LIN_Y/LIN_Z` to avoid confusing it with `::ANG_X/ANG_Y/ANG_Z`. - The function `RigidBody::add_collider` is now private. It was only public because it was needed for some internal - `bevy_rapier` plumbings, but it is no longer useful. Adding a collider must always go througthe `ColliderSet`. + `bevy_rapier` plumbings, but it is no longer useful. Adding a collider must always go through the `ColliderSet`. - `CharacterController::solve_character_collision_impulses` now takes multiple `CharacterCollision` as parameter: this change will allow further internal optimizations. - `QueryPipeline::update` now doesn't need the `RigidBodySet` as parameter. diff --git a/src/counters/collision_detection_counters.rs b/src/counters/collision_detection_counters.rs index 90c5141..1d2d28f 100644 --- a/src/counters/collision_detection_counters.rs +++ b/src/counters/collision_detection_counters.rs @@ -22,7 +22,7 @@ impl CollisionDetectionCounters { } } - /// Resets all the coounters and timers. + /// Resets all the counters and timers. pub fn reset(&mut self) { self.ncontact_pairs = 0; self.broad_phase_time.reset(); diff --git a/src/counters/mod.rs b/src/counters/mod.rs index 99a627a..188f078 100644 --- a/src/counters/mod.rs +++ b/src/counters/mod.rs @@ -23,7 +23,7 @@ pub struct Counters { pub step_time: Timer, /// Timer used for debugging. pub custom: Timer, - /// Counters of every satge of one time step. + /// Counters of every stage of one time step. pub stages: StagesCounters, /// Counters of the collision-detection stage. pub cd: CollisionDetectionCounters, diff --git a/src/data/coarena.rs b/src/data/coarena.rs index 18fb055..b9e7f44 100644 --- a/src/data/coarena.rs +++ b/src/data/coarena.rs @@ -78,7 +78,7 @@ impl Coarena { self.data[i1 as usize] = (g1, value); } - /// Ensure that the given element exists in thihs coarena, and return its mutable reference. + /// Ensure that the given element exists in this coarena, and return its mutable reference. pub fn ensure_element_exist(&mut self, a: Index, default: T) -> &mut T where T: Clone, @@ -99,7 +99,7 @@ impl Coarena { &mut data.1 } - /// Ensure that elements at the two given indices exist in this coarena, and return their reference. + /// Ensure that elements at the two given indices exist in this coarena, and return their references. /// /// Missing elements are created automatically and initialized with the `default` value. pub fn ensure_pair_exists(&mut self, a: Index, b: Index, default: T) -> (&mut T, &mut T) diff --git a/src/dynamics/joint/multibody_joint/multibody_joint_set.rs b/src/dynamics/joint/multibody_joint/multibody_joint_set.rs index 8a56a72..a9bf521 100644 --- a/src/dynamics/joint/multibody_joint/multibody_joint_set.rs +++ b/src/dynamics/joint/multibody_joint/multibody_joint_set.rs @@ -374,7 +374,7 @@ impl MultibodyJointSet { )) } - /// Returns the the joint between two rigid-bodies (if it exists). + /// Returns the joint between two rigid-bodies (if it exists). pub fn joint_between( &self, rb1: RigidBodyHandle, -- cgit