Skip to content

Commit

Permalink
Can't compare usize and u32
Browse files Browse the repository at this point in the history
  • Loading branch information
clarfonthey committed Jul 31, 2023
1 parent 0165a4c commit bd6ccf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/char/methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl char {
/// ```
/// #![feature(char_min)]
/// let dist = u32::from(char::MAX) - u32::from(char::MIN);
/// let size = (char::MIN..=char::MAX).count();
/// let size = (char::MIN..=char::MAX).count() as u32;
/// assert!(dist < size);
/// ```
///
Expand Down Expand Up @@ -52,7 +52,7 @@ impl char {
/// ```
/// #![feature(char_min)]
/// let dist = u32::from(char::MAX) - u32::from(char::MIN);
/// let size = (char::MIN..=char::MAX).count();
/// let size = (char::MIN..=char::MAX).count() as u32;
/// assert!(dist < size);
/// ```
///
Expand Down

0 comments on commit bd6ccf3

Please sign in to comment.