Skip to content

Commit c3d7969

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 c3d7969

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

library/core/src/num/nonzero.rs

-4
Original file line numberDiff line numberDiff line change
@@ -790,8 +790,6 @@ macro_rules! nonzero_integer_signedness_dependent_impls {
790790
impl Div<$Ty> for $Int {
791791
type Output = $Int;
792792

793-
/// This operation rounds towards zero,
794-
/// truncating any fractional part of the exact result, and cannot panic.
795793
#[inline]
796794
fn div(self, other: $Ty) -> $Int {
797795
// SAFETY: div by zero is checked because `other` is a nonzero,
@@ -802,8 +800,6 @@ macro_rules! nonzero_integer_signedness_dependent_impls {
802800

803801
#[stable(feature = "nonzero_div_assign", since = "CURRENT_RUSTC_VERSION")]
804802
impl DivAssign<$Ty> for $Int {
805-
/// This operation rounds towards zero,
806-
/// truncating any fractional part of the exact result, and cannot panic.
807803
#[inline]
808804
fn div_assign(&mut self, other: $Ty) {
809805
*self = *self / other;

0 commit comments

Comments
 (0)