Skip to content

Commit

Permalink
Fix mentions of wrapping operations
Browse files Browse the repository at this point in the history
  • Loading branch information
kellerkindt committed Aug 28, 2021
1 parent acf0a0c commit 977ae5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/num/saturating.rs
Expand Up @@ -6,7 +6,7 @@ use crate::ops::{BitXor, BitXorAssign, Div, DivAssign};
use crate::ops::{Mul, MulAssign, Neg, Not, Rem, RemAssign};
use crate::ops::{Shl, ShlAssign, Shr, ShrAssign, Sub, SubAssign};

/// Provides intentionally-wrapped arithmetic on `T`.
/// Provides intentionally-saturating arithmetic on `T`.
///
/// Operations like `+` on `u32` values are intended to never overflow,
/// and in some debug configurations overflow is detected and results
Expand Down Expand Up @@ -741,7 +741,7 @@ macro_rules! saturating_int_impl {
#[doc = concat!("assert_eq!(Saturating(3", stringify!($t), ").pow(4), Saturating(81));")]
/// ```
///
/// Results that are too large are wrapped:
/// Results that are too large are saturated:
///
/// ```
/// #![feature(saturating_int_impl)]
Expand Down

0 comments on commit 977ae5a

Please sign in to comment.