about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonathan Turner <jonathandturner@users.noreply.github.com>2016-09-22 11:25:02 -0700
committerGitHub <noreply@github.com>2016-09-22 11:25:02 -0700
commitbc7991a54ed4be556c5fc165e6f00b16646950b2 (patch)
tree2fd34f6864252d7ff8beaddcaf9f846c85d7e60b
parent5d4c0edb695fb3d13a36ee6a2edf2c0f0fd2a98c (diff)
parent429ba7ba9a61f2c24e92849d8d3b37ad7ffeb843 (diff)
Rollup merge of #36600 - caipre:sort-by-key-comment-fix, r=apasel422
Minor correction in `sort_by_key` doc comment

The parameter to `sort_by_key` is named `f`, not `key`.
-rw-r--r--src/libcollections/slice.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcollections/slice.rs b/src/libcollections/slice.rs
index 5cdf4ee88c0..54dc7ec06da 100644
--- a/src/libcollections/slice.rs
+++ b/src/libcollections/slice.rs
@@ -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