diff options
| author | ltdk <usr@ltdk.xyz> | 2023-07-31 15:08:52 -0400 |
|---|---|---|
| committer | ltdk <usr@ltdk.xyz> | 2023-07-31 15:08:52 -0400 |
| commit | 9fce8abe0bf135d05731dff415e6312472c043b7 (patch) | |
| tree | 0a863ed1fed518026cbbc244c9d45b283a3fa571 | |
| parent | bd6ccf31de722eb75478c418cac8b5ff5338c53d (diff) | |
| download | rust-9fce8abe0bf135d05731dff415e6312472c043b7.tar.gz rust-9fce8abe0bf135d05731dff415e6312472c043b7.zip | |
I'm mathematically challenged
| -rw-r--r-- | library/core/src/char/methods.rs | 4 |
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 |
