Skip to content

Commit 5ebed0b

Browse files
committed
chore(121952): remove redundant comments
These were only relevant for the unsafe-containing implementations Signed-off-by: Petr Portnov <[email protected]>
1 parent b186f40 commit 5ebed0b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

library/core/src/num/nonzero.rs

-3
Original file line numberDiff line numberDiff line change
@@ -851,8 +851,6 @@ macro_rules! nonzero_integer_signedness_dependent_impls {
851851

852852
#[stable(feature = "nonzero_div_assign", since = "CURRENT_RUSTC_VERSION")]
853853
impl DivAssign<$Ty> for $Int {
854-
/// This operation rounds towards zero,
855-
/// truncating any fractional part of the exact result, and cannot panic.
856854
#[inline]
857855
fn div_assign(&mut self, other: $Ty) {
858856
*self = *self / other;
@@ -874,7 +872,6 @@ macro_rules! nonzero_integer_signedness_dependent_impls {
874872

875873
#[stable(feature = "nonzero_div_assign", since = "CURRENT_RUSTC_VERSION")]
876874
impl RemAssign<$Ty> for $Int {
877-
/// This operation satisfies `n % d == n - (n / d) * d`, and cannot panic.
878875
#[inline]
879876
fn rem_assign(&mut self, other: $Ty) {
880877
*self = *self % other;

0 commit comments

Comments
 (0)