Skip to content

Commit

Permalink
Rollup merge of rust-lang#36600 - caipre:sort-by-key-comment-fix, r=a…
Browse files Browse the repository at this point in the history
…pasel422

Minor correction in `sort_by_key` doc comment

The parameter to `sort_by_key` is named `f`, not `key`.
  • Loading branch information
Jonathan Turner committed Sep 21, 2016
2 parents 5457fde + 429ba7b commit 9c469ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcollections/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c469ff

Please sign in to comment.