Skip to content

Commit 2a3568f

Browse files
committed
Fix wording around sort guarantees
Fixes rust-lang#38524
1 parent 1283c02 commit 2a3568f

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
@@ -1064,8 +1064,11 @@ impl<T> [T] {
10641064

10651065
/// This is equivalent to `self.sort_by(|a, b| a.cmp(b))`.
10661066
///
1067-
/// This sort is stable and `O(n log n)` worst-case, but allocates
1068-
/// temporary storage half the size of `self`.
1067+
/// This sort is stable and `O(n log n)` worst-case.
1068+
///
1069+
/// # Current Implementation
1070+
///
1071+
/// The current implementation allocates temporary storage half the size of `self`.
10691072
///
10701073
/// # Examples
10711074
///

0 commit comments

Comments
 (0)