@@ -69,7 +69,7 @@ use crate::boxed::Box;
6969use crate :: vec:: Vec ;
7070
7171impl < 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.
7373 ///
7474 /// This sort is stable (i.e., does not reorder equal elements) and *O*(*n* \* log(*n*))
7575 /// worst-case.
@@ -137,7 +137,8 @@ impl<T> [T] {
137137 stable_sort ( self , T :: lt) ;
138138 }
139139
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.
141142 ///
142143 /// This sort is stable (i.e., does not reorder equal elements) and *O*(*n* \* log(*n*))
143144 /// worst-case.
@@ -197,7 +198,8 @@ impl<T> [T] {
197198 stable_sort ( self , |a, b| compare ( a, b) == Less ) ;
198199 }
199200
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.
201203 ///
202204 /// This sort is stable (i.e., does not reorder equal elements) and *O*(*m* \* *n* \* log(*n*))
203205 /// worst-case, where the key function is *O*(*m*).
@@ -252,7 +254,8 @@ impl<T> [T] {
252254 stable_sort ( self , |a, b| f ( a) . lt ( & f ( b) ) ) ;
253255 }
254256
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.
256259 ///
257260 /// This sort is stable (i.e., does not reorder equal elements) and *O*(*m* \* *n* + *n* \*
258261 /// log(*n*)) worst-case, where the key function is *O*(*m*).
0 commit comments