Skip to content

Commit f0fc331

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 5656fa8 commit f0fc331

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
@@ -802,8 +802,6 @@ macro_rules! nonzero_integer_signedness_dependent_impls {
802802

803803
#[stable(feature = "nonzero_div_assign", since = "CURRENT_RUSTC_VERSION")]
804804
impl DivAssign<$Ty> for $Int {
805-
/// This operation rounds towards zero,
806-
/// truncating any fractional part of the exact result, and cannot panic.
807805
#[inline]
808806
fn div_assign(&mut self, other: $Ty) {
809807
*self = *self / other;
@@ -825,7 +823,6 @@ macro_rules! nonzero_integer_signedness_dependent_impls {
825823

826824
#[stable(feature = "nonzero_div_assign", since = "CURRENT_RUSTC_VERSION")]
827825
impl RemAssign<$Ty> for $Int {
828-
/// This operation satisfies `n % d == n - (n / d) * d`, and cannot panic.
829826
#[inline]
830827
fn rem_assign(&mut self, other: $Ty) {
831828
*self = *self % other;

0 commit comments

Comments
 (0)