Skip to content

Commit

Permalink
Rollup merge of #36600 - caipre:sort-by-key-comment-fix, r=apasel422
Browse files Browse the repository at this point in the history
Minor correction in `sort_by_key` doc comment

The parameter to `sort_by_key` is named `f`, not `key`.
  • Loading branch information
Jonathan Turner authored Sep 22, 2016
2 parents 5d4c0ed + 429ba7b commit bc7991a
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 bc7991a

Please sign in to comment.