File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 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 {
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
You can’t perform that action at this time.
0 commit comments