@@ -1517,7 +1517,7 @@ macro_rules! uint_impl {
1517
1517
}
1518
1518
}
1519
1519
1520
- /// Unbounded shift left. Computes `self << rhs`, without bounding the value of `rhs`
1520
+ /// Unbounded shift left. Computes `self << rhs`, without bounding the value of `rhs`.
1521
1521
///
1522
1522
/// If `rhs` is larger or equal to the number of bits in `self`,
1523
1523
/// the entire value is shifted out, and `0` is returned.
@@ -1640,7 +1640,7 @@ macro_rules! uint_impl {
1640
1640
}
1641
1641
}
1642
1642
1643
- /// Unbounded shift right. Computes `self >> rhs`, without bounding the value of `rhs`
1643
+ /// Unbounded shift right. Computes `self >> rhs`, without bounding the value of `rhs`.
1644
1644
///
1645
1645
/// If `rhs` is larger or equal to the number of bits in `self`,
1646
1646
/// the entire value is shifted out, and `0` is returned.
@@ -2299,7 +2299,7 @@ macro_rules! uint_impl {
2299
2299
///
2300
2300
/// # Examples
2301
2301
///
2302
- /// Basic usage
2302
+ /// Basic usage:
2303
2303
///
2304
2304
/// ```
2305
2305
#[ doc = concat!( "assert_eq!(5" , stringify!( $SelfT) , ".overflowing_add(2), (7, false));" ) ]
@@ -2389,15 +2389,15 @@ macro_rules! uint_impl {
2389
2389
( res, overflowed ^ ( rhs < 0 ) )
2390
2390
}
2391
2391
2392
- /// Calculates `self` - `rhs`
2392
+ /// Calculates `self` - `rhs`.
2393
2393
///
2394
2394
/// Returns a tuple of the subtraction along with a boolean indicating
2395
2395
/// whether an arithmetic overflow would occur. If an overflow would
2396
2396
/// have occurred then the wrapped value is returned.
2397
2397
///
2398
2398
/// # Examples
2399
2399
///
2400
- /// Basic usage
2400
+ /// Basic usage:
2401
2401
///
2402
2402
/// ```
2403
2403
#[ doc = concat!( "assert_eq!(5" , stringify!( $SelfT) , ".overflowing_sub(2), (3, false));" ) ]
@@ -2550,7 +2550,7 @@ macro_rules! uint_impl {
2550
2550
///
2551
2551
/// # Examples
2552
2552
///
2553
- /// Basic usage
2553
+ /// Basic usage:
2554
2554
///
2555
2555
/// ```
2556
2556
#[ doc = concat!( "assert_eq!(5" , stringify!( $SelfT) , ".overflowing_div(2), (2, false));" ) ]
@@ -2581,7 +2581,7 @@ macro_rules! uint_impl {
2581
2581
///
2582
2582
/// # Examples
2583
2583
///
2584
- /// Basic usage
2584
+ /// Basic usage:
2585
2585
///
2586
2586
/// ```
2587
2587
#[ doc = concat!( "assert_eq!(5" , stringify!( $SelfT) , ".overflowing_div_euclid(2), (2, false));" ) ]
@@ -2609,7 +2609,7 @@ macro_rules! uint_impl {
2609
2609
///
2610
2610
/// # Examples
2611
2611
///
2612
- /// Basic usage
2612
+ /// Basic usage:
2613
2613
///
2614
2614
/// ```
2615
2615
#[ doc = concat!( "assert_eq!(5" , stringify!( $SelfT) , ".overflowing_rem(2), (1, false));" ) ]
@@ -2640,7 +2640,7 @@ macro_rules! uint_impl {
2640
2640
///
2641
2641
/// # Examples
2642
2642
///
2643
- /// Basic usage
2643
+ /// Basic usage:
2644
2644
///
2645
2645
/// ```
2646
2646
#[ doc = concat!( "assert_eq!(5" , stringify!( $SelfT) , ".overflowing_rem_euclid(2), (1, false));" ) ]
@@ -2664,7 +2664,7 @@ macro_rules! uint_impl {
2664
2664
///
2665
2665
/// # Examples
2666
2666
///
2667
- /// Basic usage
2667
+ /// Basic usage:
2668
2668
///
2669
2669
/// ```
2670
2670
#[ doc = concat!( "assert_eq!(0" , stringify!( $SelfT) , ".overflowing_neg(), (0, false));" ) ]
@@ -2689,7 +2689,7 @@ macro_rules! uint_impl {
2689
2689
///
2690
2690
/// # Examples
2691
2691
///
2692
- /// Basic usage
2692
+ /// Basic usage:
2693
2693
///
2694
2694
/// ```
2695
2695
#[ doc = concat!( "assert_eq!(0x1" , stringify!( $SelfT) , ".overflowing_shl(4), (0x10, false));" ) ]
@@ -2715,7 +2715,7 @@ macro_rules! uint_impl {
2715
2715
///
2716
2716
/// # Examples
2717
2717
///
2718
- /// Basic usage
2718
+ /// Basic usage:
2719
2719
///
2720
2720
/// ```
2721
2721
#[ doc = concat!( "assert_eq!(0x10" , stringify!( $SelfT) , ".overflowing_shr(4), (0x1, false));" ) ]
0 commit comments