From 5ebed0ba4b057ade343a9390c39490c599c41d86 Mon Sep 17 00:00:00 2001 From: Petr Portnov Date: Mon, 4 Mar 2024 00:08:25 +0300 Subject: [PATCH] chore(121952): remove redundant comments These were only relevant for the unsafe-containing implementations Signed-off-by: Petr Portnov --- library/core/src/num/nonzero.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/library/core/src/num/nonzero.rs b/library/core/src/num/nonzero.rs index a8f637280df..d025cea6cb9 100644 --- a/library/core/src/num/nonzero.rs +++ b/library/core/src/num/nonzero.rs @@ -851,8 +851,6 @@ fn div(self, other: $Ty) -> $Int { #[stable(feature = "nonzero_div_assign", since = "CURRENT_RUSTC_VERSION")] impl DivAssign<$Ty> for $Int { - /// This operation rounds towards zero, - /// truncating any fractional part of the exact result, and cannot panic. #[inline] fn div_assign(&mut self, other: $Ty) { *self = *self / other; @@ -874,7 +872,6 @@ fn rem(self, other: $Ty) -> $Int { #[stable(feature = "nonzero_div_assign", since = "CURRENT_RUSTC_VERSION")] impl RemAssign<$Ty> for $Int { - /// This operation satisfies `n % d == n - (n / d) * d`, and cannot panic. #[inline] fn rem_assign(&mut self, other: $Ty) { *self = *self % other;