File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -404,12 +404,12 @@ macro_rules! int_impl {
404
404
/// ```
405
405
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
406
406
#[ 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 ,
410
410
-1 if self == Self :: min_value( )
411
- => None ,
412
- v => Some ( self / v ) ,
411
+ => None ,
412
+ other => Some ( self / other ) ,
413
413
}
414
414
}
415
415
@@ -973,10 +973,10 @@ macro_rules! uint_impl {
973
973
/// ```
974
974
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
975
975
#[ 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 {
978
978
0 => None ,
979
- v => Some ( self / v ) ,
979
+ other => Some ( self / other ) ,
980
980
}
981
981
}
982
982
You can’t perform that action at this time.
0 commit comments