@@ -509,7 +509,7 @@ where
509
509
///
510
510
/// Like `Vec::swap_remove`, the pair is removed by swapping it with the
511
511
/// 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!**
513
513
///
514
514
/// Return `None` if `key` is not in map.
515
515
///
@@ -525,7 +525,7 @@ where
525
525
///
526
526
/// Like `Vec::swap_remove`, the pair is removed by swapping it with the
527
527
/// 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!**
529
529
///
530
530
/// Return `None` if `key` is not in map.
531
531
///
@@ -545,7 +545,7 @@ where
545
545
///
546
546
/// Like `Vec::swap_remove`, the pair is removed by swapping it with the
547
547
/// 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!**
549
549
///
550
550
/// Return `None` if `key` is not in map.
551
551
///
@@ -751,7 +751,7 @@ impl<K, V, S> IndexMap<K, V, S> {
751
751
///
752
752
/// Like `Vec::swap_remove`, the pair is removed by swapping it with the
753
753
/// 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!**
755
755
///
756
756
/// Computes in **O(1)** time (average).
757
757
pub fn swap_remove_index ( & mut self , index : usize ) -> Option < ( K , V ) > {
0 commit comments