From 80914afa47bb4e7a8d7abe1b7c343ceb12283280 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 20 Feb 2006 04:13:10 +0000 Subject: * 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 --- ChangeLog | 5 +++++ lib/rational.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e7a5c155a1..23830a0e2b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Feb 20 12:27:53 2006 Kent Sibilev + + * lib/rational.rb (Integer::gcd): small typo fix. + [ruby-core:07395] + Mon Feb 20 01:05:27 2006 Yukihiro Matsumoto * lib/rational.rb (Integer::gcd): replaced by gcd4 in 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 -- cgit v1.2.3