chore(121952): remove redundant comments
These were only relevant for the unsafe-containing implementations Signed-off-by: Petr Portnov <me@progrm-jarvis.ru>
This commit is contained in:
parent
b186f40b8b
commit
5ebed0ba4b
@ -851,8 +851,6 @@ fn div(self, other: $Ty) -> $Int {
|
||||
|
||||
#[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;
|
||||
@ -874,7 +872,6 @@ fn rem(self, other: $Ty) -> $Int {
|
||||
|
||||
#[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;
|
||||
|
Loading…
Reference in New Issue
Block a user