Skip to content

Commit

Permalink
Fix mistake in example
Browse files Browse the repository at this point in the history
  • Loading branch information
Voultapher committed Aug 12, 2024
1 parent 794919b commit 9155758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/cmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ impl<T: Clone> Clone for Reverse<T> {
///
/// // Antisymmetry requirement of `Ord` is not given. Only one of a < c and c < a is allowed to be
/// // true, not both or neither.
/// assert_eq!((a < c) as u8 + (b < c) as u8, 2);
/// assert_eq!((a < c) as u8 + (c < a) as u8, 2);
/// ```
///
/// The documentation of [`PartialOrd`] contains further examples, for example it's wrong for
Expand Down

0 comments on commit 9155758

Please sign in to comment.