Skip to content

Commit 2ec294b

Browse files
authored
Fix typo in PartialOrd docs
1 parent e7c788a commit 2ec294b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/cmp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ impl PartialOrd for Ordering {
429429
/// This trait can be used with `#[derive]`. When `derive`d, it will produce a lexicographic
430430
/// ordering based on the top-to-bottom declaration order of the struct's members.
431431
///
432-
/// ## How can I implement `Ord`?
432+
/// ## How can I implement `PartialOrd`?
433433
///
434434
/// PartialOrd only requires implementation of the `partial_cmp` method, with the others generated
435435
/// from default implementations.

0 commit comments

Comments
 (0)