summaryrefslogtreecommitdiff
path: root/lib/rational.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rational.rb')
-rw-r--r--lib/rational.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rational.rb b/lib/rational.rb
index 5220f319f2..ce754cfa3c 100644
--- a/lib/rational.rb
+++ b/lib/rational.rb
@@ -435,7 +435,7 @@ class Integer
#
# The result is positive, no matter the sign of the arguments.
#
- def gcd(n)
+ def gcd(other)
min = self.abs
max = other.abs
while min > 0