Skip to content

Commit

Permalink
Fix more typos. (#712)
Browse files Browse the repository at this point in the history
These are ones not found by `typos` for various reasons.
  • Loading branch information
waywardmonkeys authored Aug 9, 2024
1 parent 5542bc5 commit ed133e1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/counters/collision_detection_counters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/counters/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/data/coarena.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ impl<T> Coarena<T> {
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,
Expand All @@ -99,7 +99,7 @@ impl<T> Coarena<T> {
&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)
Expand Down
2 changes: 1 addition & 1 deletion src/dynamics/joint/multibody_joint/multibody_joint_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ed133e1

Please sign in to comment.