We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0165a4c commit bd6ccf3Copy full SHA for bd6ccf3
library/core/src/char/methods.rs
@@ -19,7 +19,7 @@ impl char {
19
/// ```
20
/// #![feature(char_min)]
21
/// let dist = u32::from(char::MAX) - u32::from(char::MIN);
22
- /// let size = (char::MIN..=char::MAX).count();
+ /// let size = (char::MIN..=char::MAX).count() as u32;
23
/// assert!(dist < size);
24
25
///
@@ -52,7 +52,7 @@ impl char {
52
53
54
55
56
57
58
0 commit comments