I'm mathematically challenged

This commit is contained in:
ltdk 2023-07-31 15:08:52 -04:00
parent bd6ccf31de
commit 9fce8abe0b

View file

@ -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