1
Fork 0

Gratuitous at byte boundaries in hex i32 literals in some doc-tests

This commit is contained in:
Simon Sapin 2018-08-17 14:01:57 +02:00
parent 8defd152b3
commit f5556a6a28

View file

@ -1891,7 +1891,7 @@ $EndFeature, "
/// ``` /// ```
/// #![feature(int_to_from_bytes)] /// #![feature(int_to_from_bytes)]
/// ///
/// let bytes = 0x12345678i32.to_be_bytes(); /// let bytes = 0x12_34_56_78_i32.to_be_bytes();
/// assert_eq!(bytes, [0x12, 0x34, 0x56, 0x78]); /// assert_eq!(bytes, [0x12, 0x34, 0x56, 0x78]);
/// ``` /// ```
#[unstable(feature = "int_to_from_bytes", issue = "52963")] #[unstable(feature = "int_to_from_bytes", issue = "52963")]
@ -1908,7 +1908,7 @@ $EndFeature, "
/// ``` /// ```
/// #![feature(int_to_from_bytes)] /// #![feature(int_to_from_bytes)]
/// ///
/// let bytes = 0x12345678i32.to_le_bytes(); /// let bytes = 0x12_34_56_78_i32.to_le_bytes();
/// assert_eq!(bytes, [0x78, 0x56, 0x34, 0x12]); /// assert_eq!(bytes, [0x78, 0x56, 0x34, 0x12]);
/// ``` /// ```
#[unstable(feature = "int_to_from_bytes", issue = "52963")] #[unstable(feature = "int_to_from_bytes", issue = "52963")]
@ -3576,7 +3576,7 @@ $EndFeature, "
/// ``` /// ```
/// #![feature(int_to_from_bytes)] /// #![feature(int_to_from_bytes)]
/// ///
/// let bytes = 0x12345678i32.to_be_bytes(); /// let bytes = 0x12_34_56_78_i32.to_be_bytes();
/// assert_eq!(bytes, [0x12, 0x34, 0x56, 0x78]); /// assert_eq!(bytes, [0x12, 0x34, 0x56, 0x78]);
/// ``` /// ```
#[unstable(feature = "int_to_from_bytes", issue = "52963")] #[unstable(feature = "int_to_from_bytes", issue = "52963")]
@ -3593,7 +3593,7 @@ $EndFeature, "
/// ``` /// ```
/// #![feature(int_to_from_bytes)] /// #![feature(int_to_from_bytes)]
/// ///
/// let bytes = 0x12345678i32.to_le_bytes(); /// let bytes = 0x12_34_56_78_i32.to_le_bytes();
/// assert_eq!(bytes, [0x78, 0x56, 0x34, 0x12]); /// assert_eq!(bytes, [0x78, 0x56, 0x34, 0x12]);
/// ``` /// ```
#[unstable(feature = "int_to_from_bytes", issue = "52963")] #[unstable(feature = "int_to_from_bytes", issue = "52963")]