From bf293bd3c01e63a4862a93d7d8a463aced10f1f5 Mon Sep 17 00:00:00 2001 From: Anders Musikka Date: Sun, 20 Dec 2020 17:39:20 +0100 Subject: [PATCH] Fixspelling mistakes in documentation of IndexMap --- src/map.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/map.rs b/src/map.rs index 532791cf..bb182ed3 100644 --- a/src/map.rs +++ b/src/map.rs @@ -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. /// @@ -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. /// @@ -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. /// @@ -751,7 +751,7 @@ impl IndexMap { /// /// 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)> {