Skip to content

Commit 0b80d40

Browse files
authored
Rollup merge of #144767 - tgross35:doc-grammar, r=ibraheemdev
Correct some grammar in integer documentation Update "between" to "among" (more than two items), connect the "which" dependent clause to the independent part, and remove the redundant "here".
2 parents 4327e69 + ad61b31 commit 0b80d40

File tree

4 files changed

+12
-18
lines changed

4 files changed

+12
-18
lines changed

library/core/src/num/int_macros.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2494,8 +2494,7 @@ macro_rules! int_impl {
24942494
///
24952495
/// # Examples
24962496
///
2497-
/// Please note that this example is shared between integer types.
2498-
/// Which explains why `i32` is used here.
2497+
/// Please note that this example is shared among integer types, which is why `i32` is used.
24992498
///
25002499
/// ```
25012500
/// #![feature(bigint_helper_methods)]
@@ -2525,8 +2524,7 @@ macro_rules! int_impl {
25252524
///
25262525
/// # Examples
25272526
///
2528-
/// Please note that this example is shared between integer types.
2529-
/// Which explains why `i32` is used here.
2527+
/// Please note that this example is shared among integer types, which is why `i32` is used.
25302528
///
25312529
/// ```
25322530
/// #![feature(bigint_helper_methods)]
@@ -2563,8 +2561,7 @@ macro_rules! int_impl {
25632561
///
25642562
/// # Examples
25652563
///
2566-
/// Please note that this example is shared between integer types.
2567-
/// Which explains why `i32` is used here.
2564+
/// Please note that this example is shared among integer types, which is why `i32` is used.
25682565
///
25692566
/// ```
25702567
/// #![feature(bigint_helper_methods)]

library/core/src/num/saturating.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,8 +729,8 @@ macro_rules! saturating_int_impl {
729729
///
730730
/// # Examples
731731
///
732-
/// Please note that this example is shared between integer types.
733-
/// Which explains why `i16` is used here.
732+
/// Please note that this example is shared among integer types, which is why `i16`
733+
/// is used.
734734
///
735735
/// ```
736736
/// use std::num::Saturating;

library/core/src/num/uint_macros.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2115,8 +2115,7 @@ macro_rules! uint_impl {
21152115
///
21162116
/// # Examples
21172117
///
2118-
/// Please note that this example is shared between integer types.
2119-
/// Which explains why `u8` is used here.
2118+
/// Please note that this example is shared among integer types, which is why `u8` is used.
21202119
///
21212120
/// ```
21222121
/// assert_eq!(10u8.wrapping_mul(12), 120);
@@ -2606,8 +2605,8 @@ macro_rules! uint_impl {
26062605
///
26072606
/// # Examples
26082607
///
2609-
/// Please note that this example is shared between integer types.
2610-
/// Which explains why `u32` is used here.
2608+
/// Please note that this example is shared among integer types, which is why why `u32`
2609+
/// is used.
26112610
///
26122611
/// ```
26132612
/// assert_eq!(5u32.overflowing_mul(2), (10, false));
@@ -2633,8 +2632,7 @@ macro_rules! uint_impl {
26332632
///
26342633
/// # Examples
26352634
///
2636-
/// Please note that this example is shared between integer types.
2637-
/// Which explains why `u32` is used here.
2635+
/// Please note that this example is shared among integer types, which is why `u32` is used.
26382636
///
26392637
/// ```
26402638
/// #![feature(bigint_helper_methods)]
@@ -2664,8 +2662,7 @@ macro_rules! uint_impl {
26642662
///
26652663
/// # Examples
26662664
///
2667-
/// Please note that this example is shared between integer types.
2668-
/// Which explains why `u32` is used here.
2665+
/// Please note that this example is shared among integer types, which is why `u32` is used.
26692666
///
26702667
/// ```
26712668
/// #![feature(bigint_helper_methods)]

library/core/src/num/wrapping.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -765,8 +765,8 @@ macro_rules! wrapping_int_impl {
765765
///
766766
/// # Examples
767767
///
768-
/// Please note that this example is shared between integer types.
769-
/// Which explains why `i16` is used here.
768+
/// Please note that this example is shared among integer types, which is why `i16`
769+
/// is used.
770770
///
771771
/// Basic usage:
772772
///

0 commit comments

Comments
 (0)