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".
This commit is contained in:
commit
0b80d406ce
4 changed files with 12 additions and 18 deletions
|
|
@ -2494,8 +2494,7 @@ macro_rules! int_impl {
|
|||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// Please note that this example is shared between integer types.
|
||||
/// Which explains why `i32` is used here.
|
||||
/// Please note that this example is shared among integer types, which is why `i32` is used.
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(bigint_helper_methods)]
|
||||
|
|
@ -2525,8 +2524,7 @@ macro_rules! int_impl {
|
|||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// Please note that this example is shared between integer types.
|
||||
/// Which explains why `i32` is used here.
|
||||
/// Please note that this example is shared among integer types, which is why `i32` is used.
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(bigint_helper_methods)]
|
||||
|
|
@ -2563,8 +2561,7 @@ macro_rules! int_impl {
|
|||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// Please note that this example is shared between integer types.
|
||||
/// Which explains why `i32` is used here.
|
||||
/// Please note that this example is shared among integer types, which is why `i32` is used.
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(bigint_helper_methods)]
|
||||
|
|
|
|||
|
|
@ -729,8 +729,8 @@ macro_rules! saturating_int_impl {
|
|||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// Please note that this example is shared between integer types.
|
||||
/// Which explains why `i16` is used here.
|
||||
/// Please note that this example is shared among integer types, which is why `i16`
|
||||
/// is used.
|
||||
///
|
||||
/// ```
|
||||
/// use std::num::Saturating;
|
||||
|
|
|
|||
|
|
@ -2115,8 +2115,7 @@ macro_rules! uint_impl {
|
|||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// Please note that this example is shared between integer types.
|
||||
/// Which explains why `u8` is used here.
|
||||
/// Please note that this example is shared among integer types, which is why `u8` is used.
|
||||
///
|
||||
/// ```
|
||||
/// assert_eq!(10u8.wrapping_mul(12), 120);
|
||||
|
|
@ -2606,8 +2605,8 @@ macro_rules! uint_impl {
|
|||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// Please note that this example is shared between integer types.
|
||||
/// Which explains why `u32` is used here.
|
||||
/// Please note that this example is shared among integer types, which is why why `u32`
|
||||
/// is used.
|
||||
///
|
||||
/// ```
|
||||
/// assert_eq!(5u32.overflowing_mul(2), (10, false));
|
||||
|
|
@ -2633,8 +2632,7 @@ macro_rules! uint_impl {
|
|||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// Please note that this example is shared between integer types.
|
||||
/// Which explains why `u32` is used here.
|
||||
/// Please note that this example is shared among integer types, which is why `u32` is used.
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(bigint_helper_methods)]
|
||||
|
|
@ -2664,8 +2662,7 @@ macro_rules! uint_impl {
|
|||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// Please note that this example is shared between integer types.
|
||||
/// Which explains why `u32` is used here.
|
||||
/// Please note that this example is shared among integer types, which is why `u32` is used.
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(bigint_helper_methods)]
|
||||
|
|
|
|||
|
|
@ -765,8 +765,8 @@ macro_rules! wrapping_int_impl {
|
|||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// Please note that this example is shared between integer types.
|
||||
/// Which explains why `i16` is used here.
|
||||
/// Please note that this example is shared among integer types, which is why `i16`
|
||||
/// is used.
|
||||
///
|
||||
/// Basic usage:
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue