@@ -1891,7 +1891,7 @@ $EndFeature, "
1891
1891
/// ```
1892
1892
/// #![feature(int_to_from_bytes)]
1893
1893
///
1894
- /// let bytes = 0x12345678i32 .to_be_bytes();
1894
+ /// let bytes = 0x12_34_56_78_i32 .to_be_bytes();
1895
1895
/// assert_eq!(bytes, [0x12, 0x34, 0x56, 0x78]);
1896
1896
/// ```
1897
1897
#[ unstable( feature = "int_to_from_bytes" , issue = "52963" ) ]
@@ -1908,7 +1908,7 @@ $EndFeature, "
1908
1908
/// ```
1909
1909
/// #![feature(int_to_from_bytes)]
1910
1910
///
1911
- /// let bytes = 0x12345678i32 .to_le_bytes();
1911
+ /// let bytes = 0x12_34_56_78_i32 .to_le_bytes();
1912
1912
/// assert_eq!(bytes, [0x78, 0x56, 0x34, 0x12]);
1913
1913
/// ```
1914
1914
#[ unstable( feature = "int_to_from_bytes" , issue = "52963" ) ]
@@ -3576,7 +3576,7 @@ $EndFeature, "
3576
3576
/// ```
3577
3577
/// #![feature(int_to_from_bytes)]
3578
3578
///
3579
- /// let bytes = 0x12345678i32 .to_be_bytes();
3579
+ /// let bytes = 0x12_34_56_78_i32 .to_be_bytes();
3580
3580
/// assert_eq!(bytes, [0x12, 0x34, 0x56, 0x78]);
3581
3581
/// ```
3582
3582
#[ unstable( feature = "int_to_from_bytes" , issue = "52963" ) ]
@@ -3593,7 +3593,7 @@ $EndFeature, "
3593
3593
/// ```
3594
3594
/// #![feature(int_to_from_bytes)]
3595
3595
///
3596
- /// let bytes = 0x12345678i32 .to_le_bytes();
3596
+ /// let bytes = 0x12_34_56_78_i32 .to_le_bytes();
3597
3597
/// assert_eq!(bytes, [0x78, 0x56, 0x34, 0x12]);
3598
3598
/// ```
3599
3599
#[ unstable( feature = "int_to_from_bytes" , issue = "52963" ) ]
0 commit comments