File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -255,8 +255,8 @@ impl Ordering {
255
255
///
256
256
/// `Ord` requires that the type also be `PartialOrd` and `Eq` (which requires `PartialEq`).
257
257
///
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.
260
260
///
261
261
/// Here's an example where you want to sort people by height only, disregarding `id`
262
262
/// and `name`:
@@ -355,7 +355,7 @@ impl PartialOrd for Ordering {
355
355
///
356
356
/// `PartialOrd` requires your type to be `PartialEq`.
357
357
///
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() `:
359
359
///
360
360
/// ```
361
361
/// impl PartialOrd for Person {
@@ -365,7 +365,7 @@ impl PartialOrd for Ordering {
365
365
/// }
366
366
/// ```
367
367
///
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
369
369
/// is an example of `Person` types who have a floating-point `height` field that
370
370
/// is the only field to be used for sorting:
371
371
///
You can’t perform that action at this time.
0 commit comments