@@ -509,7 +509,7 @@ where
509509 ///
510510 /// Like `Vec::swap_remove`, the pair is removed by swapping it with the
511511 /// last element of the map and popping it off. **This perturbs
512- /// the postion of what used to be the last element!**
512+ /// the position of what used to be the last element!**
513513 ///
514514 /// Return `None` if `key` is not in map.
515515 ///
@@ -525,7 +525,7 @@ where
525525 ///
526526 /// Like `Vec::swap_remove`, the pair is removed by swapping it with the
527527 /// last element of the map and popping it off. **This perturbs
528- /// the postion of what used to be the last element!**
528+ /// the position of what used to be the last element!**
529529 ///
530530 /// Return `None` if `key` is not in map.
531531 ///
@@ -545,7 +545,7 @@ where
545545 ///
546546 /// Like `Vec::swap_remove`, the pair is removed by swapping it with the
547547 /// last element of the map and popping it off. **This perturbs
548- /// the postion of what used to be the last element!**
548+ /// the position of what used to be the last element!**
549549 ///
550550 /// Return `None` if `key` is not in map.
551551 ///
@@ -751,7 +751,7 @@ impl<K, V, S> IndexMap<K, V, S> {
751751 ///
752752 /// Like `Vec::swap_remove`, the pair is removed by swapping it with the
753753 /// last element of the map and popping it off. **This perturbs
754- /// the postion of what used to be the last element!**
754+ /// the position of what used to be the last element!**
755755 ///
756756 /// Computes in **O(1)** time (average).
757757 pub fn swap_remove_index ( & mut self , index : usize ) -> Option < ( K , V ) > {
0 commit comments