Skip to content

Commit

Permalink
Continue indexmap-rs#167 with more "postion" typos
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Mar 5, 2021
1 parent 1f1e049 commit c7da219
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/map/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ impl<K, V> OccupiedEntry<'_, K, V> {
///
/// Like `Vec::swap_remove`, the pair is removed by swapping it with the
/// last element of the map and popping it off. **This perturbs
/// the postion of what used to be the last element!**
/// the position of what used to be the last element!**
///
/// Computes in **O(1)** time (average).
pub fn swap_remove(self) -> V {
Expand Down
2 changes: 1 addition & 1 deletion src/map/core/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ impl<'a, K, V> OccupiedEntry<'a, K, V> {
///
/// Like `Vec::swap_remove`, the pair is removed by swapping it with the
/// last element of the map and popping it off. **This perturbs
/// the postion of what used to be the last element!**
/// the position of what used to be the last element!**
///
/// Computes in **O(1)** time (average).
pub fn swap_remove_entry(self) -> (K, V) {
Expand Down
8 changes: 4 additions & 4 deletions src/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ where
///
/// Like `Vec::swap_remove`, the value is removed by swapping it with the
/// last element of the set and popping it off. **This perturbs
/// the postion of what used to be the last element!**
/// the position of what used to be the last element!**
///
/// Return `false` if `value` was not in the set.
///
Expand Down Expand Up @@ -473,7 +473,7 @@ where
///
/// Like `Vec::swap_remove`, the value is removed by swapping it with the
/// last element of the set and popping it off. **This perturbs
/// the postion of what used to be the last element!**
/// the position of what used to be the last element!**
///
/// Return `None` if `value` was not in the set.
///
Expand Down Expand Up @@ -506,7 +506,7 @@ where
///
/// Like `Vec::swap_remove`, the value is removed by swapping it with the
/// last element of the set and popping it off. **This perturbs
/// the postion of what used to be the last element!**
/// the position of what used to be the last element!**
///
/// Return `None` if `value` was not in the set.
pub fn swap_remove_full<Q: ?Sized>(&mut self, value: &Q) -> Option<(usize, T)>
Expand Down Expand Up @@ -622,7 +622,7 @@ impl<T, S> IndexSet<T, S> {
///
/// Like `Vec::swap_remove`, the value is removed by swapping it with the
/// last element of the set and popping it off. **This perturbs
/// the postion of what used to be the last element!**
/// the position of what used to be the last element!**
///
/// Computes in **O(1)** time (average).
pub fn swap_remove_index(&mut self, index: usize) -> Option<T> {
Expand Down

0 comments on commit c7da219

Please sign in to comment.