summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-20 04:13:10 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-20 04:13:10 +0000
commit04970b08ca8488eb3af19c25b703879b275c44e3 (patch)
treede1f3cb58cd4dc51d13cee6d1188a94a547e9c3b
parentf652cadb5a053a5b9df51e03bb23cefac92b4576 (diff)
downloadruby-04970b08ca8488eb3af19c25b703879b275c44e3.tar.gz
ruby-04970b08ca8488eb3af19c25b703879b275c44e3.tar.xz
ruby-04970b08ca8488eb3af19c25b703879b275c44e3.zip
* lib/rational.rb (Integer::gcd): small typo fix. [ruby-core:07395]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/rational.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e7a5c155a..23830a0e2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Feb 20 12:27:53 2006 Kent Sibilev <ksruby@gmail.com>
+
+ * lib/rational.rb (Integer::gcd): small typo fix.
+ [ruby-core:07395]
+
Mon Feb 20 01:05:27 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/rational.rb (Integer::gcd): replaced by gcd4 in
diff --git a/lib/rational.rb b/lib/rational.rb
index 5220f319f..ce754cfa3 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