@@ -2730,8 +2730,10 @@ impl<T> [T] {
2730
2730
/// This reordering has the additional property that any value at position `i < index` will be
2731
2731
/// less than or equal to any value at a position `j > index`. Additionally, this reordering is
2732
2732
/// unstable (i.e. any number of equal elements may end up at position `index`), in-place
2733
- /// (i.e. does not allocate), and *O*(*n*) worst-case. This function is also/ known as "kth
2734
- /// element" in other libraries. It returns a triplet of the following from the reordered slice:
2733
+ /// (i.e. does not allocate), and *O*(*n*) on average. The worst-case performance is *O*(*n* log *n*).
2734
+ /// This function is also known as "kth element" in other libraries.
2735
+ ///
2736
+ /// It returns a triplet of the following from the reordered slice:
2735
2737
/// the subslice prior to `index`, the element at `index`, and the subslice after `index`;
2736
2738
/// accordingly, the values in those two subslices will respectively all be less-than-or-equal-to
2737
2739
/// and greater-than-or-equal-to the value of the element at `index`.
@@ -2777,8 +2779,11 @@ impl<T> [T] {
2777
2779
/// This reordering has the additional property that any value at position `i < index` will be
2778
2780
/// less than or equal to any value at a position `j > index` using the comparator function.
2779
2781
/// Additionally, this reordering is unstable (i.e. any number of equal elements may end up at
2780
- /// position `index`), in-place (i.e. does not allocate), and *O*(*n*) worst-case. This function
2781
- /// is also known as "kth element" in other libraries. It returns a triplet of the following from
2782
+ /// position `index`), in-place (i.e. does not allocate), and *O*(*n*) on average.
2783
+ /// The worst-case performance is *O*(*n* log *n*). This function is also known as
2784
+ /// "kth element" in other libraries.
2785
+ ///
2786
+ /// It returns a triplet of the following from
2782
2787
/// the slice reordered according to the provided comparator function: the subslice prior to
2783
2788
/// `index`, the element at `index`, and the subslice after `index`; accordingly, the values in
2784
2789
/// those two subslices will respectively all be less-than-or-equal-to and greater-than-or-equal-to
@@ -2829,8 +2834,11 @@ impl<T> [T] {
2829
2834
/// This reordering has the additional property that any value at position `i < index` will be
2830
2835
/// less than or equal to any value at a position `j > index` using the key extraction function.
2831
2836
/// Additionally, this reordering is unstable (i.e. any number of equal elements may end up at
2832
- /// position `index`), in-place (i.e. does not allocate), and *O*(*n*) worst-case. This function
2833
- /// is also known as "kth element" in other libraries. It returns a triplet of the following from
2837
+ /// position `index`), in-place (i.e. does not allocate), and *O*(*n*) on average.
2838
+ /// The worst-case performance is *O*(*n* log *n*).
2839
+ /// This function is also known as "kth element" in other libraries.
2840
+ ///
2841
+ /// It returns a triplet of the following from
2834
2842
/// the slice reordered according to the provided key extraction function: the subslice prior to
2835
2843
/// `index`, the element at `index`, and the subslice after `index`; accordingly, the values in
2836
2844
/// those two subslices will respectively all be less-than-or-equal-to and greater-than-or-equal-to
0 commit comments