Skip to content

Commit 6cf4dd9

Browse files
committed
Remove mentioning of modular arithmetic
1 parent 631766c commit 6cf4dd9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

library/core/src/num/saturating.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ use crate::ops::{Sub, SubAssign};
1111
/// Operations like `+` on `u32` values are intended to never overflow,
1212
/// and in some debug configurations overflow is detected and results
1313
/// in a panic. While most arithmetic falls into this category, some
14-
/// code explicitly expects and relies upon modular arithmetic (e.g.,
15-
/// hashing).
14+
/// code explicitly expects and relies upon saturating arithmetic.
1615
///
1716
/// Saturating arithmetic can be achieved either through methods like
1817
/// `saturating_add`, or through the `Saturating<T>` type, which says that
@@ -93,7 +92,7 @@ macro_rules! saturating_impl {
9392
}
9493
}
9594
forward_ref_binop! { impl Add, add for Saturating<$t>, Saturating<$t>,
96-
#[unstable(feature = "saturating_int_impl", issue = "87920")]
95+
#[unstable(feature = "saturating_int_impl", issue = "87920")] }
9796

9897
#[unstable(feature = "saturating_int_impl", issue = "87920")]
9998
impl AddAssign for Saturating<$t> {

0 commit comments

Comments
 (0)