Skip to content

Commit

Permalink
Merge pull request #167 from avl/patch-1
Browse files Browse the repository at this point in the history
Fix spelling mistakes in documentation of IndexMap
  • Loading branch information
cuviper committed Dec 20, 2020
2 parents 453278e + bf293bd commit 015eeea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ where
///
/// 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!**
///
/// Return `None` if `key` is not in map.
///
Expand All @@ -525,7 +525,7 @@ where
///
/// 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!**
///
/// Return `None` if `key` is not in map.
///
Expand All @@ -545,7 +545,7 @@ where
///
/// 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!**
///
/// Return `None` if `key` is not in map.
///
Expand Down Expand Up @@ -751,7 +751,7 @@ impl<K, V, S> IndexMap<K, V, S> {
///
/// 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_index(&mut self, index: usize) -> Option<(K, V)> {
Expand Down

0 comments on commit 015eeea

Please sign in to comment.