From f5556a6a28683e3dd0f039948964a5361a70a498 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Fri, 17 Aug 2018 14:01:57 +0200 Subject: [PATCH] Gratuitous at byte boundaries in hex i32 literals in some doc-tests --- src/libcore/num/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index feaedf4b909..37856dc5469 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -1891,7 +1891,7 @@ $EndFeature, " /// ``` /// #![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]); /// ``` #[unstable(feature = "int_to_from_bytes", issue = "52963")] @@ -1908,7 +1908,7 @@ $EndFeature, " /// ``` /// #![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]); /// ``` #[unstable(feature = "int_to_from_bytes", issue = "52963")] @@ -3576,7 +3576,7 @@ $EndFeature, " /// ``` /// #![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]); /// ``` #[unstable(feature = "int_to_from_bytes", issue = "52963")] @@ -3593,7 +3593,7 @@ $EndFeature, " /// ``` /// #![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]); /// ``` #[unstable(feature = "int_to_from_bytes", issue = "52963")]