Skip to content

Commit daa9dca

Browse files
committed
Use () when referring to functions
1 parent 9149992 commit daa9dca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcore/cmp.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ impl Ordering {
255255
///
256256
/// `Ord` requires that the type also be `PartialOrd` and `Eq` (which requires `PartialEq`).
257257
///
258-
/// Then you must define an implementation for `cmp`. You may find it useful to use
259-
/// `cmp` on your type's fields.
258+
/// Then you must define an implementation for `cmp()`. You may find it useful to use
259+
/// `cmp()` on your type's fields.
260260
///
261261
/// Here's an example where you want to sort people by height only, disregarding `id`
262262
/// and `name`:
@@ -355,7 +355,7 @@ impl PartialOrd for Ordering {
355355
///
356356
/// `PartialOrd` requires your type to be `PartialEq`.
357357
///
358-
/// If your type is `Ord`, you can implement `partial_cmp` by using `cmp`:
358+
/// If your type is `Ord`, you can implement `partial_cmp()` by using `cmp()`:
359359
///
360360
/// ```
361361
/// impl PartialOrd for Person {
@@ -365,7 +365,7 @@ impl PartialOrd for Ordering {
365365
/// }
366366
/// ```
367367
///
368-
/// You may also find it useful to use `partial_cmp` on your type`s fields. Here
368+
/// You may also find it useful to use `partial_cmp()` on your type`s fields. Here
369369
/// is an example of `Person` types who have a floating-point `height` field that
370370
/// is the only field to be used for sorting:
371371
///

0 commit comments

Comments
 (0)