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 Sep 27, 2024
1 parent a9eb97b commit cb0529a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 cb0529a

Please sign in to comment.