about summary refs log tree commit diff
path: root/library/core/src
diff options
context:
space:
mode:
authorMichael Watzko <michael@watzko.de>2021-08-12 09:32:44 +0200
committerMichael Watzko <michael@watzko.de>2021-08-12 10:05:38 +0200
commit6cf4dd975b841a75388cbc4b53effc8d80faeb34 (patch)
tree1b5b305c5d84e3f2fca634b2c5bca90e02930ddc /library/core/src
parent631766c0555acad0571f761f948bc4b144620534 (diff)
downloadrust-6cf4dd975b841a75388cbc4b53effc8d80faeb34.tar.gz
rust-6cf4dd975b841a75388cbc4b53effc8d80faeb34.zip
Remove mentioning of modular arithmetic
Diffstat (limited to 'library/core/src')
-rw-r--r--library/core/src/num/saturating.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/library/core/src/num/saturating.rs b/library/core/src/num/saturating.rs
index 4616656b1ac..55c6a51f581 100644
--- a/library/core/src/num/saturating.rs
+++ b/library/core/src/num/saturating.rs
@@ -11,8 +11,7 @@ use crate::ops::{Sub, SubAssign};
 /// Operations like `+` on `u32` values are intended to never overflow,
 /// and in some debug configurations overflow is detected and results
 /// in a panic. While most arithmetic falls into this category, some
-/// code explicitly expects and relies upon modular arithmetic (e.g.,
-/// hashing).
+/// code explicitly expects and relies upon saturating arithmetic.
 ///
 /// Saturating arithmetic can be achieved either through methods like
 /// `saturating_add`, or through the `Saturating<T>` type, which says that
@@ -93,7 +92,7 @@ macro_rules! saturating_impl {
             }
         }
         forward_ref_binop! { impl Add, add for Saturating<$t>, Saturating<$t>,
-                #[unstable(feature = "saturating_int_impl", issue = "87920")]
+                #[unstable(feature = "saturating_int_impl", issue = "87920")] }
 
         #[unstable(feature = "saturating_int_impl", issue = "87920")]
         impl AddAssign for Saturating<$t> {