Skip to content

Commit 977ae5a

Browse files
committed
Fix mentions of wrapping operations
1 parent acf0a0c commit 977ae5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/num/saturating.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::ops::{BitXor, BitXorAssign, Div, DivAssign};
66
use crate::ops::{Mul, MulAssign, Neg, Not, Rem, RemAssign};
77
use crate::ops::{Shl, ShlAssign, Shr, ShrAssign, Sub, SubAssign};
88

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

0 commit comments

Comments
 (0)