about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorCarol (Nichols || Goulding) <carol.nichols@gmail.com>2016-05-23 13:06:23 -0400
committerCarol (Nichols || Goulding) <carol.nichols@gmail.com>2016-05-23 13:06:23 -0400
commitdaa9dcaac4cb99adbed8a6911dbe4f570b7deb75 (patch)
treed3d10db7597514b4006bd8445de2a742b8177a39 /src/libcore
parent914999260427d8717bcf9fecf9407a8d5c751dec (diff)
downloadrust-daa9dcaac4cb99adbed8a6911dbe4f570b7deb75.tar.gz
rust-daa9dcaac4cb99adbed8a6911dbe4f570b7deb75.zip
Use `()` when referring to functions
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/cmp.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs
index be56ab1a41b..f23128b3364 100644
--- a/src/libcore/cmp.rs
+++ b/src/libcore/cmp.rs
@@ -255,8 +255,8 @@ impl Ordering {
 ///
 /// `Ord` requires that the type also be `PartialOrd` and `Eq` (which requires `PartialEq`).
 ///
-/// Then you must define an implementation for `cmp`. You may find it useful to use
-/// `cmp` on your type's fields.
+/// Then you must define an implementation for `cmp()`. You may find it useful to use
+/// `cmp()` on your type's fields.
 ///
 /// Here's an example where you want to sort people by height only, disregarding `id`
 /// and `name`:
@@ -355,7 +355,7 @@ impl PartialOrd for Ordering {
 ///
 /// `PartialOrd` requires your type to be `PartialEq`.
 ///
-/// If your type is `Ord`, you can implement `partial_cmp` by using `cmp`:
+/// If your type is `Ord`, you can implement `partial_cmp()` by using `cmp()`:
 ///
 /// ```
 /// impl PartialOrd for Person {
@@ -365,7 +365,7 @@ impl PartialOrd for Ordering {
 /// }
 /// ```
 ///
-/// You may also find it useful to use `partial_cmp` on your type`s fields. Here
+/// You may also find it useful to use `partial_cmp()` on your type`s fields. Here
 /// is an example of `Person` types who have a floating-point `height` field that
 /// is the only field to be used for sorting:
 ///