Skip to content

Commit

Permalink
Fixspelling mistakes in documentation of IndexMap
Browse files Browse the repository at this point in the history
  • Loading branch information
avl committed Dec 20, 2020
1 parent 453278e commit bf293bd
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 bf293bd

Please sign in to comment.