about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--library/core/src/char/methods.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/char/methods.rs b/library/core/src/char/methods.rs
index feb8ee2bbda..4ac956e7b76 100644
--- a/library/core/src/char/methods.rs
+++ b/library/core/src/char/methods.rs
@@ -20,7 +20,7 @@ impl char {
     /// #![feature(char_min)]
     /// let dist = u32::from(char::MAX) - u32::from(char::MIN);
     /// let size = (char::MIN..=char::MAX).count() as u32;
-    /// assert!(dist < size);
+    /// assert!(size < dist);
     /// ```
     ///
     /// Despite this gap, the `MIN` and [`MAX`] values can be used as bounds for
@@ -53,7 +53,7 @@ impl char {
     /// #![feature(char_min)]
     /// let dist = u32::from(char::MAX) - u32::from(char::MIN);
     /// let size = (char::MIN..=char::MAX).count() as u32;
-    /// assert!(dist < size);
+    /// assert!(size < dist);
     /// ```
     ///
     /// Despite this gap, the [`MIN`] and `MAX` values can be used as bounds for