@@ -779,11 +779,10 @@ impl<T> [T] {
779
779
core_slice:: SliceExt :: binary_search_by_key ( self , b, f)
780
780
}
781
781
782
- /// Sorts the slice, in place.
783
- ///
784
782
/// This is equivalent to `self.sort_by(|a, b| a.cmp(b))`.
785
783
///
786
- /// This is a stable sort.
784
+ /// This sort is stable and `O(n log n)` worst-case but allocates
785
+ /// approximately `2 * n` where `n` is the length of `self`.
787
786
///
788
787
/// # Examples
789
788
///
@@ -804,11 +803,9 @@ impl<T> [T] {
804
803
/// Sorts the slice, in place, using `key` to extract a key by which to
805
804
/// order the sort by.
806
805
///
807
- /// This sort is `O(n log n)` worst-case and stable, but allocates
806
+ /// This sort is stable and `O(n log n)` worst-case but allocates
808
807
/// approximately `2 * n`, where `n` is the length of `self`.
809
808
///
810
- /// This is a stable sort.
811
- ///
812
809
/// # Examples
813
810
///
814
811
/// ```rust
@@ -828,7 +825,7 @@ impl<T> [T] {
828
825
/// Sorts the slice, in place, using `compare` to compare
829
826
/// elements.
830
827
///
831
- /// This sort is `O(n log n)` worst-case and stable, but allocates
828
+ /// This sort is stable and `O(n log n)` worst-case but allocates
832
829
/// approximately `2 * n`, where `n` is the length of `self`.
833
830
///
834
831
/// # Examples
0 commit comments