Skip to content

Commit c7da219

Browse files
committed
Continue rust-lang#167 with more "postion" typos
1 parent 1f1e049 commit c7da219

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/map/core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ impl<K, V> OccupiedEntry<'_, K, V> {
563563
///
564564
/// Like `Vec::swap_remove`, the pair is removed by swapping it with the
565565
/// last element of the map and popping it off. **This perturbs
566-
/// the postion of what used to be the last element!**
566+
/// the position of what used to be the last element!**
567567
///
568568
/// Computes in **O(1)** time (average).
569569
pub fn swap_remove(self) -> V {

src/map/core/raw.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ impl<'a, K, V> OccupiedEntry<'a, K, V> {
152152
///
153153
/// Like `Vec::swap_remove`, the pair is removed by swapping it with the
154154
/// last element of the map and popping it off. **This perturbs
155-
/// the postion of what used to be the last element!**
155+
/// the position of what used to be the last element!**
156156
///
157157
/// Computes in **O(1)** time (average).
158158
pub fn swap_remove_entry(self) -> (K, V) {

src/set.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ where
425425
///
426426
/// Like `Vec::swap_remove`, the value is removed by swapping it with the
427427
/// last element of the set and popping it off. **This perturbs
428-
/// the postion of what used to be the last element!**
428+
/// the position of what used to be the last element!**
429429
///
430430
/// Return `false` if `value` was not in the set.
431431
///
@@ -473,7 +473,7 @@ where
473473
///
474474
/// Like `Vec::swap_remove`, the value is removed by swapping it with the
475475
/// last element of the set and popping it off. **This perturbs
476-
/// the postion of what used to be the last element!**
476+
/// the position of what used to be the last element!**
477477
///
478478
/// Return `None` if `value` was not in the set.
479479
///
@@ -506,7 +506,7 @@ where
506506
///
507507
/// Like `Vec::swap_remove`, the value is removed by swapping it with the
508508
/// last element of the set and popping it off. **This perturbs
509-
/// the postion of what used to be the last element!**
509+
/// the position of what used to be the last element!**
510510
///
511511
/// Return `None` if `value` was not in the set.
512512
pub fn swap_remove_full<Q: ?Sized>(&mut self, value: &Q) -> Option<(usize, T)>
@@ -622,7 +622,7 @@ impl<T, S> IndexSet<T, S> {
622622
///
623623
/// Like `Vec::swap_remove`, the value is removed by swapping it with the
624624
/// last element of the set and popping it off. **This perturbs
625-
/// the postion of what used to be the last element!**
625+
/// the position of what used to be the last element!**
626626
///
627627
/// Computes in **O(1)** time (average).
628628
pub fn swap_remove_index(&mut self, index: usize) -> Option<T> {

0 commit comments

Comments
 (0)