From 6cf4dd975b841a75388cbc4b53effc8d80faeb34 Mon Sep 17 00:00:00 2001 From: Michael Watzko Date: Thu, 12 Aug 2021 09:32:44 +0200 Subject: [PATCH] Remove mentioning of modular arithmetic --- library/core/src/num/saturating.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/library/core/src/num/saturating.rs b/library/core/src/num/saturating.rs index 4616656b1acc..55c6a51f581a 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` 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> {