Fix some typos. (#620)

This commit is contained in:
Bruce Mitchener
2024-05-05 16:41:38 +06:30
committed by GitHub
parent 1b05b2ebfa
commit 7375a691e2
16 changed files with 20 additions and 20 deletions

View File

@@ -17,7 +17,7 @@ mod timer;
/// Aggregation of all the performances counters tracked by rapier.
#[derive(Clone, Copy)]
pub struct Counters {
/// Whether thi counter is enabled or not.
/// Whether this counter is enabled or not.
pub enabled: bool,
/// Timer for a whole timestep.
pub step_time: Timer,
@@ -69,7 +69,7 @@ impl Counters {
}
}
/// Notfy that the time-step has finished.
/// Notify that the time-step has finished.
pub fn step_completed(&mut self) {
if self.enabled {
self.step_time.pause();
@@ -88,7 +88,7 @@ impl Counters {
}
}
/// Notfy that the custom operation has finished.
/// Notify that the custom operation has finished.
pub fn custom_completed(&mut self) {
if self.enabled {
self.custom.pause();

View File

@@ -21,7 +21,7 @@ pub struct StagesCounters {
}
impl StagesCounters {
/// Create a new counter intialized to zero.
/// Create a new counter initialized to zero.
pub fn new() -> Self {
StagesCounters {
update_time: Timer::new(),