Skip to content

Commit 146b81c

Browse files
committed
Fix tidy errors
1 parent 56e15de commit 146b81c

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/libcore/num/mod.rs

+10-6
Original file line numberDiff line numberDiff line change
@@ -1126,8 +1126,8 @@ assert_eq!(0x10i32.overflowing_shr(36), (0x1, true));
11261126
concat!("Computes the absolute value of `self`.
11271127
11281128
Returns a tuple of the absolute version of self along with a boolean indicating whether an overflow
1129-
happened. If self is the minimum value (e.g. ", stringify!($SelfT), "::MIN for values of type
1130-
", stringify!($SelfT), "), then the minimum value will be returned again and true will be returned
1129+
happened. If self is the minimum value (e.g. ", stringify!($SelfT), "::MIN for values of type
1130+
", stringify!($SelfT), "), then the minimum value will be returned again and true will be returned
11311131
for an overflow happening.
11321132
11331133
# Examples
@@ -1307,7 +1307,8 @@ impl i64 {
13071307

13081308
#[lang = "i128"]
13091309
impl i128 {
1310-
int_impl! { i128, i128, u128, 128, -170141183460469231731687303715884105728, 170141183460469231731687303715884105727 }
1310+
int_impl! { i128, i128, u128, 128, -170141183460469231731687303715884105728,
1311+
170141183460469231731687303715884105727 }
13111312
}
13121313

13131314
#[cfg(target_pointer_width = "16")]
@@ -1875,7 +1876,8 @@ Basic usage:
18751876
use std::", stringify!($SelfT), ";
18761877
18771878
assert_eq!(100", stringify!($SelfT), ".saturating_mul(127), 12700);
1878-
assert_eq!((1", stringify!($SelfT), " << 23).saturating_mul(1 << 23), ", stringify!($SelfT), "::MAX);
1879+
assert_eq!((1", stringify!($SelfT), " << 23).saturating_mul(1 << 23), ", stringify!($SelfT),
1880+
"::MAX);
18791881
```"),
18801882
#[stable(feature = "wrapping", since = "1.7.0")]
18811883
#[inline]
@@ -2004,9 +2006,11 @@ Any larger values are equivalent to `MAX + 1 - (val - MAX - 1)` where
20042006
Basic usage:
20052007
20062008
```
2007-
assert_eq!(100", stringify!($SelfT), ".wrapping_neg(), ", stringify!($SelfT), "::max_value() - 100 + 1);
2009+
assert_eq!(100", stringify!($SelfT), ".wrapping_neg(), ", stringify!($SelfT),
2010+
"::max_value() - 100 + 1);
20082011
assert_eq!(0", stringify!($SelfT), ".wrapping_neg(), 0);
2009-
assert_eq!(180", stringify!($SelfT), ".wrapping_neg(), ", stringify!($SelfT), "::max_value() - 180 + 1);
2012+
assert_eq!(180", stringify!($SelfT), ".wrapping_neg(), ", stringify!($SelfT),
2013+
"::max_value() - 180 + 1);
20102014
assert_eq!(180", stringify!($SelfT), ".wrapping_neg(), (", stringify!($SelfT), "::max_value() / 2",
20112015
"+ 1) - (180", stringify!($SelfT), " - (", stringify!($SelfT), "::max_value() / 2 + 1)));
20122016
```"),

0 commit comments

Comments
 (0)