diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-20 04:13:10 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-20 04:13:10 +0000 |
commit | 80914afa47bb4e7a8d7abe1b7c343ceb12283280 (patch) | |
tree | de1f3cb58cd4dc51d13cee6d1188a94a547e9c3b /lib | |
parent | c519ca950086a31fe2ff8536e45cf04c16892ab1 (diff) |
* lib/rational.rb (Integer::gcd): small typo fix. [ruby-core:07395]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rational.rb | 2 |
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 |