Skip to content

Commit

Permalink
chore(121952): remove redundant comments
Browse files Browse the repository at this point in the history
These were only relevant for the unsafe-containing implementations

Signed-off-by: Petr Portnov <[email protected]>
  • Loading branch information
JarvisCraft committed Mar 3, 2024
1 parent 5656fa8 commit f0fc331
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions library/core/src/num/nonzero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -802,8 802,6 @@ macro_rules! nonzero_integer_signedness_dependent_impls {

#[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;
Expand All @@ -825,7 823,6 @@ macro_rules! nonzero_integer_signedness_dependent_impls {

#[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;
Expand Down

0 comments on commit f0fc331

Please sign in to comment.