* lib/rational.rb (Integer::gcd): small typo fix. [ruby-core:07395]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
61ef2fa9f6
commit
3ef1b8086e
@ -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>
|
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
|
* variable.c (rb_const_get_0): Object should have been the lowest
|
||||||
|
@ -434,7 +434,7 @@ class Integer
|
|||||||
#
|
#
|
||||||
# The result is positive, no matter the sign of the arguments.
|
# The result is positive, no matter the sign of the arguments.
|
||||||
#
|
#
|
||||||
def gcd(n)
|
def gcd(other)
|
||||||
min = self.abs
|
min = self.abs
|
||||||
max = other.abs
|
max = other.abs
|
||||||
while min > 0
|
while min > 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user