@@ -1891,7 +1891,7 @@ $EndFeature, "
18911891 /// ```
18921892 /// #![feature(int_to_from_bytes)]
18931893 ///
1894- /// let bytes = 0x12345678i32 .to_be_bytes();
1894+ /// let bytes = 0x12_34_56_78_i32 .to_be_bytes();
18951895 /// assert_eq!(bytes, [0x12, 0x34, 0x56, 0x78]);
18961896 /// ```
18971897 #[ unstable( feature = "int_to_from_bytes" , issue = "52963" ) ]
@@ -1908,7 +1908,7 @@ $EndFeature, "
19081908 /// ```
19091909 /// #![feature(int_to_from_bytes)]
19101910 ///
1911- /// let bytes = 0x12345678i32 .to_le_bytes();
1911+ /// let bytes = 0x12_34_56_78_i32 .to_le_bytes();
19121912 /// assert_eq!(bytes, [0x78, 0x56, 0x34, 0x12]);
19131913 /// ```
19141914 #[ unstable( feature = "int_to_from_bytes" , issue = "52963" ) ]
@@ -3576,7 +3576,7 @@ $EndFeature, "
35763576 /// ```
35773577 /// #![feature(int_to_from_bytes)]
35783578 ///
3579- /// let bytes = 0x12345678i32 .to_be_bytes();
3579+ /// let bytes = 0x12_34_56_78_i32 .to_be_bytes();
35803580 /// assert_eq!(bytes, [0x12, 0x34, 0x56, 0x78]);
35813581 /// ```
35823582 #[ unstable( feature = "int_to_from_bytes" , issue = "52963" ) ]
@@ -3593,7 +3593,7 @@ $EndFeature, "
35933593 /// ```
35943594 /// #![feature(int_to_from_bytes)]
35953595 ///
3596- /// let bytes = 0x12345678i32 .to_le_bytes();
3596+ /// let bytes = 0x12_34_56_78_i32 .to_le_bytes();
35973597 /// assert_eq!(bytes, [0x78, 0x56, 0x34, 0x12]);
35983598 /// ```
35993599 #[ unstable( feature = "int_to_from_bytes" , issue = "52963" ) ]
0 commit comments