Skip to content

Commit e99a77f

Browse files
committed
Auto merge of #29108 - notriddle:master, r=alexcrichton
2 parents 4aec7c7 + 5fd98b3 commit e99a77f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/libcore/num/mod.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -404,12 +404,12 @@ macro_rules! int_impl {
404404
/// ```
405405
#[stable(feature = "rust1", since = "1.0.0")]
406406
#[inline]
407-
pub fn checked_div(self, v: Self) -> Option<Self> {
408-
match v {
409-
0 => None,
407+
pub fn checked_div(self, other: Self) -> Option<Self> {
408+
match other {
409+
0 => None,
410410
-1 if self == Self::min_value()
411-
=> None,
412-
v => Some(self / v),
411+
=> None,
412+
other => Some(self / other),
413413
}
414414
}
415415

@@ -973,10 +973,10 @@ macro_rules! uint_impl {
973973
/// ```
974974
#[stable(feature = "rust1", since = "1.0.0")]
975975
#[inline]
976-
pub fn checked_div(self, v: Self) -> Option<Self> {
977-
match v {
976+
pub fn checked_div(self, other: Self) -> Option<Self> {
977+
match other {
978978
0 => None,
979-
v => Some(self / v),
979+
other => Some(self / other),
980980
}
981981
}
982982

0 commit comments

Comments
 (0)