about summary refs log tree commit diff
diff options
context:
space:
mode:
authorltdk <usr@ltdk.xyz>2023-07-31 15:08:52 -0400
committerltdk <usr@ltdk.xyz>2023-07-31 15:08:52 -0400
commit9fce8abe0bf135d05731dff415e6312472c043b7 (patch)
tree0a863ed1fed518026cbbc244c9d45b283a3fa571
parentbd6ccf31de722eb75478c418cac8b5ff5338c53d (diff)
downloadrust-9fce8abe0bf135d05731dff415e6312472c043b7.tar.gz
rust-9fce8abe0bf135d05731dff415e6312472c043b7.zip
I'm mathematically challenged
-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