aboutsummaryrefslogtreecommitdiff
path: root/src/data/coarena.rs
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2024-08-09 19:31:08 +0700
committerGitHub <noreply@github.com>2024-08-09 14:31:08 +0200
commited133e1ea9fca451ed8b06ea2c7d067990975bf6 (patch)
tree120a8361333b8a311d69fc957275c9ddc5add37f /src/data/coarena.rs
parent5542bc5dbd7c569c23c8147c295fd3301fd29cfd (diff)
downloadrapier-ed133e1ea9fca451ed8b06ea2c7d067990975bf6.tar.gz
rapier-ed133e1ea9fca451ed8b06ea2c7d067990975bf6.tar.bz2
rapier-ed133e1ea9fca451ed8b06ea2c7d067990975bf6.zip
Fix more typos. (#712)
These are ones not found by `typos` for various reasons.
Diffstat (limited to 'src/data/coarena.rs')
-rw-r--r--src/data/coarena.rs4
1 files changed, 2 insertions, 2 deletions
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<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,
@@ -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)