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 c3d7969
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions library/core/src/num/nonzero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -790,8 +790,6 @@ macro_rules! nonzero_integer_signedness_dependent_impls {
impl Div<$Ty> for $Int {
type Output = $Int;

/// This operation rounds towards zero,
/// truncating any fractional part of the exact result, and cannot panic.
#[inline]
fn div(self, other: $Ty) -> $Int {
// SAFETY: div by zero is checked because `other` is a nonzero,
Expand All @@ -802,8 +800,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 Down

0 comments on commit c3d7969

Please sign in to comment.