1
Fork 0

Minor correction in sort_by_key doc comment

This commit is contained in:
Nick Platt 2016-09-20 11:20:19 -04:00
parent 2c2552b712
commit 429ba7ba9a

View file

@ -1037,7 +1037,7 @@ impl<T> [T] {
self.sort_by(|a, b| a.cmp(b))
}
/// Sorts the slice, in place, using `key` to extract a key by which to
/// Sorts the slice, in place, using `f` to extract a key by which to
/// order the sort by.
///
/// This sort is stable and `O(n log n)` worst-case but allocates