Fix mistake in example · qinheping/verify-rust-std@cb0529a (original) (raw)

Original file line number Diff line number Diff line change
@@ -942,7 +942,7 @@ impl<T: Clone> Clone for Reverse {
942 942 ///
943 943 /// // Antisymmetry requirement of `Ord` is not given. Only one of a < c and c < a is allowed to be
944 944 /// // true, not both or neither.
945 -/// assert_eq!((a < c) as u8 + (b < c) as u8, 2);
945 +/// assert_eq!((a < c) as u8 + (c < a) as u8, 2);
946 946 /// ```
947 947 ///
948 948 /// The documentation of [`PartialOrd`] contains further examples, for example it's wrong for