@@ -69,7 +69,7 @@ use crate::boxed::Box;
69
69
use crate :: vec:: Vec ;
70
70
71
71
impl < T > [ T ] {
72
- /// Sorts the slice, preserving initial order of equal elements.
72
+ /// Sorts the slice in ascending order , preserving initial order of equal elements.
73
73
///
74
74
/// This sort is stable (i.e., does not reorder equal elements) and *O*(*n* \* log(*n*))
75
75
/// worst-case.
@@ -137,7 +137,8 @@ impl<T> [T] {
137
137
stable_sort ( self , T :: lt) ;
138
138
}
139
139
140
- /// Sorts the slice with a comparison function, preserving initial order of equal elements.
140
+ /// Sorts the slice in ascending order with a comparison function, preserving initial order of
141
+ /// equal elements.
141
142
///
142
143
/// This sort is stable (i.e., does not reorder equal elements) and *O*(*n* \* log(*n*))
143
144
/// worst-case.
@@ -197,7 +198,8 @@ impl<T> [T] {
197
198
stable_sort ( self , |a, b| compare ( a, b) == Less ) ;
198
199
}
199
200
200
- /// Sorts the slice with a key extraction function, preserving initial order of equal elements.
201
+ /// Sorts the slice in ascending order with a key extraction function, preserving initial order
202
+ /// of equal elements.
201
203
///
202
204
/// This sort is stable (i.e., does not reorder equal elements) and *O*(*m* \* *n* \* log(*n*))
203
205
/// worst-case, where the key function is *O*(*m*).
@@ -252,7 +254,8 @@ impl<T> [T] {
252
254
stable_sort ( self , |a, b| f ( a) . lt ( & f ( b) ) ) ;
253
255
}
254
256
255
- /// Sorts the slice with a key extraction function, preserving initial order of equal elements.
257
+ /// Sorts the slice in ascending order with a key extraction function, preserving initial order
258
+ /// of equal elements.
256
259
///
257
260
/// This sort is stable (i.e., does not reorder equal elements) and *O*(*m* \* *n* + *n* \*
258
261
/// log(*n*)) worst-case, where the key function is *O*(*m*).
0 commit comments