Skip to content

Commit ad63721

Browse files
committed
style: Add underscores
1 parent df6355a commit ad63721

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

library/core/src/num/int_macros.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ macro_rules! int_impl {
219219
///
220220
#[doc = concat!("assert_eq!(0b0_", stringify!($SelfT), ".highest_one(), None);")]
221221
#[doc = concat!("assert_eq!(0b1_", stringify!($SelfT), ".highest_one(), Some(0));")]
222-
#[doc = concat!("assert_eq!(0b10000_", stringify!($SelfT), ".highest_one(), Some(4));")]
223-
#[doc = concat!("assert_eq!(0b11111_", stringify!($SelfT), ".highest_one(), Some(4));")]
222+
#[doc = concat!("assert_eq!(0b1_0000_", stringify!($SelfT), ".highest_one(), Some(4));")]
223+
#[doc = concat!("assert_eq!(0b1_1111_", stringify!($SelfT), ".highest_one(), Some(4));")]
224224
/// ```
225225
#[unstable(feature = "int_lowest_highest_one", issue = "145203")]
226226
#[must_use = "this returns the result of the operation, \
@@ -240,8 +240,8 @@ macro_rules! int_impl {
240240
///
241241
#[doc = concat!("assert_eq!(0b0_", stringify!($SelfT), ".lowest_one(), None);")]
242242
#[doc = concat!("assert_eq!(0b1_", stringify!($SelfT), ".lowest_one(), Some(0));")]
243-
#[doc = concat!("assert_eq!(0b10000_", stringify!($SelfT), ".lowest_one(), Some(4));")]
244-
#[doc = concat!("assert_eq!(0b11111_", stringify!($SelfT), ".lowest_one(), Some(0));")]
243+
#[doc = concat!("assert_eq!(0b1_0000_", stringify!($SelfT), ".lowest_one(), Some(4));")]
244+
#[doc = concat!("assert_eq!(0b1_1111_", stringify!($SelfT), ".lowest_one(), Some(0));")]
245245
/// ```
246246
#[unstable(feature = "int_lowest_highest_one", issue = "145203")]
247247
#[must_use = "this returns the result of the operation, \

library/core/src/num/nonzero.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -709,8 +709,8 @@ macro_rules! nonzero_integer {
709709
/// # fn main() { test().unwrap(); }
710710
/// # fn test() -> Option<()> {
711711
#[doc = concat!("assert_eq!(NonZero::<", stringify!($Int), ">::new(0b1)?.highest_one(), 0);")]
712-
#[doc = concat!("assert_eq!(NonZero::<", stringify!($Int), ">::new(0b10000)?.highest_one(), 4);")]
713-
#[doc = concat!("assert_eq!(NonZero::<", stringify!($Int), ">::new(0b11111)?.highest_one(), 4);")]
712+
#[doc = concat!("assert_eq!(NonZero::<", stringify!($Int), ">::new(0b1_0000)?.highest_one(), 4);")]
713+
#[doc = concat!("assert_eq!(NonZero::<", stringify!($Int), ">::new(0b1_1111)?.highest_one(), 4);")]
714714
/// # Some(())
715715
/// # }
716716
/// ```
@@ -733,8 +733,8 @@ macro_rules! nonzero_integer {
733733
/// # fn main() { test().unwrap(); }
734734
/// # fn test() -> Option<()> {
735735
#[doc = concat!("assert_eq!(NonZero::<", stringify!($Int), ">::new(0b1)?.lowest_one(), 0);")]
736-
#[doc = concat!("assert_eq!(NonZero::<", stringify!($Int), ">::new(0b10000)?.lowest_one(), 4);")]
737-
#[doc = concat!("assert_eq!(NonZero::<", stringify!($Int), ">::new(0b11111)?.lowest_one(), 0);")]
736+
#[doc = concat!("assert_eq!(NonZero::<", stringify!($Int), ">::new(0b1_0000)?.lowest_one(), 4);")]
737+
#[doc = concat!("assert_eq!(NonZero::<", stringify!($Int), ">::new(0b1_1111)?.lowest_one(), 0);")]
738738
/// # Some(())
739739
/// # }
740740
/// ```

library/core/src/num/uint_macros.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ macro_rules! uint_impl {
274274
///
275275
#[doc = concat!("assert_eq!(0b0_", stringify!($SelfT), ".highest_one(), None);")]
276276
#[doc = concat!("assert_eq!(0b1_", stringify!($SelfT), ".highest_one(), Some(0));")]
277-
#[doc = concat!("assert_eq!(0b10000_", stringify!($SelfT), ".highest_one(), Some(4));")]
278-
#[doc = concat!("assert_eq!(0b11111_", stringify!($SelfT), ".highest_one(), Some(4));")]
277+
#[doc = concat!("assert_eq!(0b1_0000_", stringify!($SelfT), ".highest_one(), Some(4));")]
278+
#[doc = concat!("assert_eq!(0b1_1111_", stringify!($SelfT), ".highest_one(), Some(4));")]
279279
/// ```
280280
#[unstable(feature = "int_lowest_highest_one", issue = "145203")]
281281
#[must_use = "this returns the result of the operation, \
@@ -298,8 +298,8 @@ macro_rules! uint_impl {
298298
///
299299
#[doc = concat!("assert_eq!(0b0_", stringify!($SelfT), ".lowest_one(), None);")]
300300
#[doc = concat!("assert_eq!(0b1_", stringify!($SelfT), ".lowest_one(), Some(0));")]
301-
#[doc = concat!("assert_eq!(0b10000_", stringify!($SelfT), ".lowest_one(), Some(4));")]
302-
#[doc = concat!("assert_eq!(0b11111_", stringify!($SelfT), ".lowest_one(), Some(0));")]
301+
#[doc = concat!("assert_eq!(0b1_0000_", stringify!($SelfT), ".lowest_one(), Some(4));")]
302+
#[doc = concat!("assert_eq!(0b1_1111_", stringify!($SelfT), ".lowest_one(), Some(0));")]
303303
/// ```
304304
#[unstable(feature = "int_lowest_highest_one", issue = "145203")]
305305
#[must_use = "this returns the result of the operation, \

0 commit comments

Comments
 (0)