Skip to content

Commit 9fce8ab

Browse files
committed
I'm mathematically challenged
1 parent bd6ccf3 commit 9fce8ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/char/methods.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ impl char {
2020
/// #![feature(char_min)]
2121
/// let dist = u32::from(char::MAX) - u32::from(char::MIN);
2222
/// let size = (char::MIN..=char::MAX).count() as u32;
23-
/// assert!(dist < size);
23+
/// assert!(size < dist);
2424
/// ```
2525
///
2626
/// Despite this gap, the `MIN` and [`MAX`] values can be used as bounds for
@@ -53,7 +53,7 @@ impl char {
5353
/// #![feature(char_min)]
5454
/// let dist = u32::from(char::MAX) - u32::from(char::MIN);
5555
/// let size = (char::MIN..=char::MAX).count() as u32;
56-
/// assert!(dist < size);
56+
/// assert!(size < dist);
5757
/// ```
5858
///
5959
/// Despite this gap, the [`MIN`] and `MAX` values can be used as bounds for

0 commit comments

Comments
 (0)