@@ -2708,8 +2708,10 @@ impl<T> [T] {
2708
2708
/// This reordering has the additional property that any value at position `i < index` will be
2709
2709
/// less than or equal to any value at a position `j > index`. Additionally, this reordering is
2710
2710
/// unstable (i.e. any number of equal elements may end up at position `index`), in-place
2711
- /// (i.e. does not allocate), and *O*(*n*) worst-case. This function is also/ known as "kth
2712
- /// element" in other libraries. It returns a triplet of the following from the reordered slice:
2711
+ /// (i.e. does not allocate), and *O*(*n*) on average. The worst-case performance is *O*(*n* log *n*).
2712
+ /// This function is also known as "kth element" in other libraries.
2713
+ ///
2714
+ /// It returns a triplet of the following from the reordered slice:
2713
2715
/// the subslice prior to `index`, the element at `index`, and the subslice after `index`;
2714
2716
/// accordingly, the values in those two subslices will respectively all be less-than-or-equal-to
2715
2717
/// and greater-than-or-equal-to the value of the element at `index`.
@@ -2755,8 +2757,11 @@ impl<T> [T] {
2755
2757
/// This reordering has the additional property that any value at position `i < index` will be
2756
2758
/// less than or equal to any value at a position `j > index` using the comparator function.
2757
2759
/// Additionally, this reordering is unstable (i.e. any number of equal elements may end up at
2758
- /// position `index`), in-place (i.e. does not allocate), and *O*(*n*) worst-case. This function
2759
- /// is also known as "kth element" in other libraries. It returns a triplet of the following from
2760
+ /// position `index`), in-place (i.e. does not allocate), and *O*(*n*) on average.
2761
+ /// The worst-case performance is *O*(*n* log *n*). This function is also known as
2762
+ /// "kth element" in other libraries.
2763
+ ///
2764
+ /// It returns a triplet of the following from
2760
2765
/// the slice reordered according to the provided comparator function: the subslice prior to
2761
2766
/// `index`, the element at `index`, and the subslice after `index`; accordingly, the values in
2762
2767
/// those two subslices will respectively all be less-than-or-equal-to and greater-than-or-equal-to
@@ -2807,8 +2812,11 @@ impl<T> [T] {
2807
2812
/// This reordering has the additional property that any value at position `i < index` will be
2808
2813
/// less than or equal to any value at a position `j > index` using the key extraction function.
2809
2814
/// Additionally, this reordering is unstable (i.e. any number of equal elements may end up at
2810
- /// position `index`), in-place (i.e. does not allocate), and *O*(*n*) worst-case. This function
2811
- /// is also known as "kth element" in other libraries. It returns a triplet of the following from
2815
+ /// position `index`), in-place (i.e. does not allocate), and *O*(*n*) on average.
2816
+ /// The worst-case performance is *O*(*n* log *n*).
2817
+ /// This function is also known as "kth element" in other libraries.
2818
+ ///
2819
+ /// It returns a triplet of the following from
2812
2820
/// the slice reordered according to the provided key extraction function: the subslice prior to
2813
2821
/// `index`, the element at `index`, and the subslice after `index`; accordingly, the values in
2814
2822
/// those two subslices will respectively all be less-than-or-equal-to and greater-than-or-equal-to
0 commit comments