about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2015-10-16 13:45:18 -0700
committerMichael Howell <michael@notriddle.com>2015-10-17 07:56:38 -0700
commit5fd98b3d795e11a27ba8f8b5d3d7b3418a12c2f8 (patch)
treefb219fe4d186223c943b0974aa9e9d13422fceec
parent747d951e883978e1d3b92bdca2cac5845869bb78 (diff)
downloadrust-5fd98b3d795e11a27ba8f8b5d3d7b3418a12c2f8.tar.gz
rust-5fd98b3d795e11a27ba8f8b5d3d7b3418a12c2f8.zip
`other` should be called `other`, not `v`.
-rw-r--r--src/libcore/num/mod.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs
index 8b005b2f8ba..4b68591aa86 100644
--- a/src/libcore/num/mod.rs
+++ b/src/libcore/num/mod.rs
@@ -404,12 +404,12 @@ macro_rules! int_impl {
         /// ```
         #[stable(feature = "rust1", since = "1.0.0")]
         #[inline]
-        pub fn checked_div(self, v: Self) -> Option<Self> {
-            match v {
-                0   => None,
+        pub fn checked_div(self, other: Self) -> Option<Self> {
+            match other {
+                0    => None,
                -1 if self == Self::min_value()
-                    => None,
-                v   => Some(self / v),
+                     => None,
+               other => Some(self / other),
             }
         }
 
@@ -973,10 +973,10 @@ macro_rules! uint_impl {
         /// ```
         #[stable(feature = "rust1", since = "1.0.0")]
         #[inline]
-        pub fn checked_div(self, v: Self) -> Option<Self> {
-            match v {
+        pub fn checked_div(self, other: Self) -> Option<Self> {
+            match other {
                 0 => None,
-                v => Some(self / v),
+                other => Some(self / other),
             }
         }