File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ impl char {
1515 /// for you:
1616 ///
1717 /// ```
18- /// #![feature(char_min)]
1918 /// let dist = u32::from(char::MAX) - u32::from(char::MIN);
2019 /// let size = (char::MIN..=char::MAX).count() as u32;
2120 /// assert!(size < dist);
@@ -29,15 +28,14 @@ impl char {
2928 /// # Examples
3029 ///
3130 /// ```
32- /// #![feature(char_min)]
3331 /// # fn something_which_returns_char() -> char { 'a' }
3432 /// let c: char = something_which_returns_char();
3533 /// assert!(char::MIN <= c);
3634 ///
3735 /// let value_at_min = u32::from(char::MIN);
3836 /// assert_eq!(char::from_u32(value_at_min), Some('\0'));
3937 /// ```
40- #[ unstable ( feature = "char_min" , issue = "114298 " ) ]
38+ #[ stable ( feature = "char_min" , since = "CURRENT_RUSTC_VERSION " ) ]
4139 pub const MIN : char = '\0' ;
4240
4341 /// The highest valid code point a `char` can have, `'\u{10FFFF}'`.
@@ -48,7 +46,6 @@ impl char {
4846 /// for you:
4947 ///
5048 /// ```
51- /// #![feature(char_min)]
5249 /// let dist = u32::from(char::MAX) - u32::from(char::MIN);
5350 /// let size = (char::MIN..=char::MAX).count() as u32;
5451 /// assert!(size < dist);
You can’t perform that action at this time.
0 commit comments