We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7655042 commit 7e3a8bcCopy full SHA for 7e3a8bc
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