Skip to content

Commit 2d03bbc

Browse files
authored
Merge pull request #131 from wllfaria/dev
fixing spelling errors across codebase
2 parents 2093a0b + b831469 commit 2d03bbc

File tree

16 files changed

+20
-20
lines changed

16 files changed

+20
-20
lines changed

anathema-geometry/src/position.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ impl SubAssign for Pos {
126126
// -----------------------------------------------------------------------------
127127

128128
/// Positions in a local space.
129-
/// These coordiantes can not be negative.
129+
/// These coordinates can not be negative.
130130
/// `0, 0` refers to top left.
131131
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Default)]
132132
pub struct LocalPos {

anathema-runtime/src/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub struct Builder<G> {
3131
}
3232

3333
impl<G: GlobalEventHandler> Builder<G> {
34-
/// Create a new runtime builder with a reciver.
34+
/// Create a new runtime builder with a receiver.
3535
/// Use this if the `Emitter` was created outside of the runtime.
3636
pub(super) fn with_receiver(
3737
message_receiver: flume::Receiver<ViewMessage>,

anathema-state/src/value/maybe.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ impl<T: State> Maybe<T> {
2929
self.0.take()
3030
}
3131

32-
/// Get option of a refernce to the underlying value
32+
/// Get option of a reference to the underlying value
3333
pub fn get_ref(&self) -> Option<&Value<T>> {
3434
self.0.as_ref()
3535
}
3636

37-
/// Get option of a mutable refernce to the underlying value
37+
/// Get option of a mutable reference to the underlying value
3838
pub fn get_mut(&mut self) -> Option<&mut Value<T>> {
3939
self.0.as_mut()
4040
}

anathema-store/src/indexmap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ where
1414
K: std::hash::Hash,
1515
K: Clone,
1616
{
17-
/// Create an empy index map
17+
/// Create an empty index map
1818
pub fn empty() -> Self {
1919
Self {
2020
slab: Slab::empty(),

anathema-store/src/slab/basic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ where
342342
match entry {
343343
Entry::Occupied(value) => Ticket { value, key },
344344
Entry::CheckedOut(_) => panic!("value already checked out"),
345-
_ => panic!("no entry maching the key"),
345+
_ => panic!("no entry matching the key"),
346346
}
347347
}
348348

anathema-store/src/slab/generational.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ impl Key {
6969
Self(index | generation)
7070
}
7171

72-
/// Set the upper auxillary value
72+
/// Set the upper auxiliary value
7373
pub fn set_aux(&mut self, aux: u16) {
7474
let aux = (aux as u64) << (Self::INDEX_BITS + Self::GEN_BITS);
7575
self.0 = self.0 << Self::GEN_BITS >> Self::GEN_BITS | aux;
7676
}
7777

78-
/// Get the auxillary value
78+
/// Get the auxiliary value
7979
pub fn aux(&self) -> u16 {
8080
(self.0 >> Self::AUX_OFFSET) as u16
8181
}

anathema-store/src/slab/shared/arc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ mod test {
236236
}
237237

238238
#[test]
239-
fn ensure_arc_resuse() {
239+
fn ensure_arc_reuse() {
240240
let mut slab = ArcSlab::<usize, _>::empty();
241241

242242
// Add and remove the value to ensure there is

anathema-store/src/slab/shared/rc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ mod test {
225225
}
226226

227227
#[test]
228-
fn ensure_rc_resuse() {
228+
fn ensure_rc_reuse() {
229229
let mut slab = RcSlab::<usize, _>::empty();
230230

231231
// Add and remove the value to ensure there is

anathema-store/src/tree/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ impl Nodes {
140140
self.inner.push(Node::new(key));
141141
}
142142

143-
// Clear nodes and remove associted values
143+
// Clear nodes and remove associated values
144144
fn clear<T, F>(&mut self, values: &mut GenSlab<(Box<[u16]>, T)>, removed_values: &mut RemovedValues, f: &mut F)
145145
where
146146
F: FnMut(T),

anathema-store/src/tree/transactions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ impl<'a, 'tree, T> InsertTransaction<'a, 'tree, T> {
5858
path[path.len() - 1] += 1;
5959
let path = path.clone();
6060

61-
// Update the root of all the children of the preceeding siblings
61+
// Update the root of all the children of the preceding siblings
6262
node.reparent(&path, self.tree.values);
6363
});
6464
value_id

0 commit comments

Comments
 (0)