summaryrefslogtreecommitdiff
path: root/lib/rational.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-20 04:26:13 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-20 04:26:13 +0000
commit3ef1b8086e962830a7672b02449d48fb3cabc001 (patch)
tree8156a61649368416f0ef55ce29b5e6da49738ab1 /lib/rational.rb
parent61ef2fa9f683c9591f68f96bae3b4ecd793857f2 (diff)
* lib/rational.rb (Integer::gcd): small typo fix. [ruby-core:07395]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 45bd141c8d..5ed283cda0 100644
--- a/lib/rational.rb
+++ b/lib/rational.rb
@@ -434,7 +434,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