Skip to content

Commit 6fca269

Browse files
authored
No extra space is used in unstable sorts
1 parent 7bdcfc0 commit 6fca269

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ where
725725
/// The comparison function receives two key and value pairs to compare (you
726726
/// can sort by keys or values or their combination as needed).
727727
///
728-
/// Computes in **O(n log n + c)** time and **O(n)** space where *n* is
728+
/// Computes in **O(n log n + c)** time where *n* is
729729
/// the length of the map and *c* is the capacity. The sort is unstable.
730730
pub fn sort_unstable_by<F>(&mut self, mut cmp: F)
731731
where

src/set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ where
596596

597597
/// Sort the set's values in place using the comparison funtion `cmp`.
598598
///
599-
/// Computes in **O(n log n)** time and **O(n)** space. The sort is unstable.
599+
/// Computes in **O(n log n)** time. The sort is unstable.
600600
pub fn sort_unstable_by<F>(&mut self, mut cmp: F)
601601
where
602602
F: FnMut(&T, &T) -> Ordering,

0 commit comments

Comments
 (0)