File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ use crate::ops::{Sub, SubAssign};
11
11
/// Operations like `+` on `u32` values are intended to never overflow,
12
12
/// and in some debug configurations overflow is detected and results
13
13
/// 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.
16
15
///
17
16
/// Saturating arithmetic can be achieved either through methods like
18
17
/// `saturating_add`, or through the `Saturating<T>` type, which says that
@@ -93,7 +92,7 @@ macro_rules! saturating_impl {
93
92
}
94
93
}
95
94
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" ) ] }
97
96
98
97
#[ unstable( feature = "saturating_int_impl" , issue = "87920" ) ]
99
98
impl AddAssign for Saturating <$t> {
You can’t perform that action at this time.
0 commit comments