Skip to content

Commit 0380dac

Browse files
committed
Fix wording around sort guarantees
Fixes rust-lang#38524
1 parent 78c892d commit 0380dac

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/libcollections/slice.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -1041,8 +1041,11 @@ impl<T> [T] {
10411041

10421042
/// This is equivalent to `self.sort_by(|a, b| a.cmp(b))`.
10431043
///
1044-
/// This sort is stable and `O(n log n)` worst-case, but allocates
1045-
/// temporary storage half the size of `self`.
1044+
/// This sort is stable and `O(n log n)` worst-case.
1045+
///
1046+
/// # Current Implementation
1047+
///
1048+
/// The current implementation allocates temporary storage half the size of `self`.
10461049
///
10471050
/// # Examples
10481051
///

0 commit comments

Comments
 (0)