Minor correction in sort_by_key
doc comment
This commit is contained in:
parent
2c2552b712
commit
429ba7ba9a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue