diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-20 04:26:13 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-20 04:26:13 +0000 |
| commit | 82c6063001a56cd324711703600e8ce7f44cdb36 (patch) | |
| tree | 8156a61649368416f0ef55ce29b5e6da49738ab1 | |
| parent | c483387f394a5ef29680173eb36a71fd9bcbdf7a (diff) | |
| download | ruby-82c6063001a56cd324711703600e8ce7f44cdb36.tar.gz ruby-82c6063001a56cd324711703600e8ce7f44cdb36.tar.xz ruby-82c6063001a56cd324711703600e8ce7f44cdb36.zip | |
* lib/rational.rb (Integer::gcd): small typo fix. [ruby-core:07395]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | lib/rational.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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 10:03:59 2006 Yukihiro Matsumoto <matz@ruby-lang.org> * variable.c (rb_const_get_0): Object should have been the lowest diff --git a/lib/rational.rb b/lib/rational.rb index 45bd141c8..5ed283cda 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 |
