Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1a5d8a5

Browse files
authoredOct 14, 2022
Rollup merge of #103045 - lukas-code:blank-lines, r=GuillaumeGomez
Remove leading newlines from integer primitive doc examples fixes #103043 ```@rustbot``` label +A-docs
2 parents 9f22530 + b8bb406 commit 1a5d8a5

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed
 

‎library/core/src/num/int_macros.rs

-9
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,6 @@ macro_rules! int_impl {
652652
/// Basic usage:
653653
///
654654
/// ```
655-
///
656655
#[doc = concat!("assert_eq!(5", stringify!($SelfT), ".checked_rem(2), Some(1));")]
657656
#[doc = concat!("assert_eq!(5", stringify!($SelfT), ".checked_rem(0), None);")]
658657
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MIN.checked_rem(-1), None);")]
@@ -704,7 +703,6 @@ macro_rules! int_impl {
704703
/// Basic usage:
705704
///
706705
/// ```
707-
///
708706
#[doc = concat!("assert_eq!(5", stringify!($SelfT), ".checked_neg(), Some(-5));")]
709707
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MIN.checked_neg(), None);")]
710708
/// ```
@@ -820,7 +818,6 @@ macro_rules! int_impl {
820818
/// Basic usage:
821819
///
822820
/// ```
823-
///
824821
#[doc = concat!("assert_eq!((-5", stringify!($SelfT), ").checked_abs(), Some(5));")]
825822
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MIN.checked_abs(), None);")]
826823
/// ```
@@ -1026,7 +1023,6 @@ macro_rules! int_impl {
10261023
/// Basic usage:
10271024
///
10281025
/// ```
1029-
///
10301026
#[doc = concat!("assert_eq!(10", stringify!($SelfT), ".saturating_mul(12), 120);")]
10311027
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MAX.saturating_mul(10), ", stringify!($SelfT), "::MAX);")]
10321028
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MIN.saturating_mul(10), ", stringify!($SelfT), "::MIN);")]
@@ -1085,7 +1081,6 @@ macro_rules! int_impl {
10851081
/// Basic usage:
10861082
///
10871083
/// ```
1088-
///
10891084
#[doc = concat!("assert_eq!((-4", stringify!($SelfT), ").saturating_pow(3), -64);")]
10901085
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MIN.saturating_pow(2), ", stringify!($SelfT), "::MAX);")]
10911086
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MIN.saturating_pow(3), ", stringify!($SelfT), "::MIN);")]
@@ -1498,7 +1493,6 @@ macro_rules! int_impl {
14981493
/// Basic usage:
14991494
///
15001495
/// ```
1501-
///
15021496
#[doc = concat!("assert_eq!(5", stringify!($SelfT), ".overflowing_add(2), (7, false));")]
15031497
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MAX.overflowing_add(1), (", stringify!($SelfT), "::MIN, true));")]
15041498
/// ```
@@ -1593,7 +1587,6 @@ macro_rules! int_impl {
15931587
/// Basic usage:
15941588
///
15951589
/// ```
1596-
///
15971590
#[doc = concat!("assert_eq!(5", stringify!($SelfT), ".overflowing_sub(2), (3, false));")]
15981591
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MIN.overflowing_sub(1), (", stringify!($SelfT), "::MAX, true));")]
15991592
/// ```
@@ -1703,7 +1696,6 @@ macro_rules! int_impl {
17031696
/// Basic usage:
17041697
///
17051698
/// ```
1706-
///
17071699
#[doc = concat!("assert_eq!(5", stringify!($SelfT), ".overflowing_div(2), (2, false));")]
17081700
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MIN.overflowing_div(-1), (", stringify!($SelfT), "::MIN, true));")]
17091701
/// ```
@@ -1766,7 +1758,6 @@ macro_rules! int_impl {
17661758
/// Basic usage:
17671759
///
17681760
/// ```
1769-
///
17701761
#[doc = concat!("assert_eq!(5", stringify!($SelfT), ".overflowing_rem(2), (1, false));")]
17711762
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MIN.overflowing_rem(-1), (0, true));")]
17721763
/// ```

‎library/core/src/num/uint_macros.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,6 @@ macro_rules! uint_impl {
14561456
/// Basic usage
14571457
///
14581458
/// ```
1459-
///
14601459
#[doc = concat!("assert_eq!(5", stringify!($SelfT), ".overflowing_add(2), (7, false));")]
14611460
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MAX.overflowing_add(1), (0, true));")]
14621461
/// ```
@@ -1551,7 +1550,6 @@ macro_rules! uint_impl {
15511550
/// Basic usage
15521551
///
15531552
/// ```
1554-
///
15551553
#[doc = concat!("assert_eq!(5", stringify!($SelfT), ".overflowing_sub(2), (3, false));")]
15561554
#[doc = concat!("assert_eq!(0", stringify!($SelfT), ".overflowing_sub(1), (", stringify!($SelfT), "::MAX, true));")]
15571555
/// ```

0 commit comments

Comments
 (0)