Skip to content

Commit 1f308f1

Browse files
authored
Merge pull request #255 from striezel-stash/fix-some-typos
Fix some typos
2 parents eedabac + 9753b89 commit 1f308f1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/map/core.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ impl<K, V> IndexMapCore<K, V> {
394394
pub(super) fn move_index(&mut self, from: usize, to: usize) {
395395
let from_hash = self.entries[from].hash;
396396
if from != to {
397-
// Use a sentinal index so other indices don't collide.
397+
// Use a sentinel index so other indices don't collide.
398398
update_index(&mut self.indices, from_hash, from, usize::MAX);
399399

400400
// Update all other indices and rotate the entry positions.
@@ -406,7 +406,7 @@ impl<K, V> IndexMapCore<K, V> {
406406
self.entries[to..=from].rotate_right(1);
407407
}
408408

409-
// Change the sentinal index to its final position.
409+
// Change the sentinel index to its final position.
410410
update_index(&mut self.indices, from_hash, usize::MAX, to);
411411
}
412412
}

src/set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ where
644644
self.map.sort_unstable_keys()
645645
}
646646

647-
/// Sort the set's values in place using the comparison funtion `cmp`.
647+
/// Sort the set's values in place using the comparison function `cmp`.
648648
///
649649
/// Computes in **O(n log n)** time. The sort is unstable.
650650
pub fn sort_unstable_by<F>(&mut self, mut cmp: F)

0 commit comments

Comments
 (0)