From 04970b08ca8488eb3af19c25b703879b275c44e3 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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rational.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit