Skip to content

Commit ad61b31

Browse files
committed
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".
1 parent adcb3d3 commit ad61b31

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
@@ -2512,8 +2512,7 @@ macro_rules! int_impl {
25122512
///
25132513
/// # Examples
25142514
///
2515-
/// Please note that this example is shared between integer types.
2516-
/// Which explains why `i32` is used here.
2515+
/// Please note that this example is shared among integer types, which is why `i32` is used.
25172516
///
25182517
/// ```
25192518
/// #![feature(bigint_helper_methods)]
@@ -2543,8 +2542,7 @@ macro_rules! int_impl {
25432542
///
25442543
/// # Examples
25452544
///
2546-
/// Please note that this example is shared between integer types.
2547-
/// Which explains why `i32` is used here.
2545+
/// Please note that this example is shared among integer types, which is why `i32` is used.
25482546
///
25492547
/// ```
25502548
/// #![feature(bigint_helper_methods)]
@@ -2581,8 +2579,7 @@ macro_rules! int_impl {
25812579
///
25822580
/// # Examples
25832581
///
2584-
/// Please note that this example is shared between integer types.
2585-
/// Which explains why `i32` is used here.
2582+
/// Please note that this example is shared among integer types, which is why `i32` is used.
25862583
///
25872584
/// ```
25882585
/// #![feature(bigint_helper_methods)]

library/core/src/num/saturating.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,8 +660,8 @@ macro_rules! saturating_int_impl {
660660
///
661661
/// # Examples
662662
///
663-
/// Please note that this example is shared between integer types.
664-
/// Which explains why `i16` is used here.
663+
/// Please note that this example is shared among integer types, which is why `i16`
664+
/// is used.
665665
///
666666
/// ```
667667
/// 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
@@ -2136,8 +2136,7 @@ macro_rules! uint_impl {
21362136
///
21372137
/// # Examples
21382138
///
2139-
/// Please note that this example is shared between integer types.
2140-
/// Which explains why `u8` is used here.
2139+
/// Please note that this example is shared among integer types, which is why `u8` is used.
21412140
///
21422141
/// ```
21432142
/// assert_eq!(10u8.wrapping_mul(12), 120);
@@ -2627,8 +2626,8 @@ macro_rules! uint_impl {
26272626
///
26282627
/// # Examples
26292628
///
2630-
/// Please note that this example is shared between integer types.
2631-
/// Which explains why `u32` is used here.
2629+
/// Please note that this example is shared among integer types, which is why why `u32`
2630+
/// is used.
26322631
///
26332632
/// ```
26342633
/// assert_eq!(5u32.overflowing_mul(2), (10, false));
@@ -2654,8 +2653,7 @@ macro_rules! uint_impl {
26542653
///
26552654
/// # Examples
26562655
///
2657-
/// Please note that this example is shared between integer types.
2658-
/// Which explains why `u32` is used here.
2656+
/// Please note that this example is shared among integer types, which is why `u32` is used.
26592657
///
26602658
/// ```
26612659
/// #![feature(bigint_helper_methods)]
@@ -2685,8 +2683,7 @@ macro_rules! uint_impl {
26852683
///
26862684
/// # Examples
26872685
///
2688-
/// Please note that this example is shared between integer types.
2689-
/// Which explains why `u32` is used here.
2686+
/// Please note that this example is shared among integer types, which is why `u32` is used.
26902687
///
26912688
/// ```
26922689
/// #![feature(bigint_helper_methods)]

library/core/src/num/wrapping.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,8 +677,8 @@ macro_rules! wrapping_int_impl {
677677
///
678678
/// # Examples
679679
///
680-
/// Please note that this example is shared between integer types.
681-
/// Which explains why `i16` is used here.
680+
/// Please note that this example is shared among integer types, which is why `i16`
681+
/// is used.
682682
///
683683
/// Basic usage:
684684
///

0 commit comments

Comments
 (0)