1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/mathn.rb (Rational::power2): typo fixed. [ruby-core:17293]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-06-19 17:17:29 +00:00
parent 5336cbdfd3
commit e76afc29d8
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Fri Jun 20 02:16:43 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/mathn.rb (Rational::power2): typo fixed. [ruby-core:17293]
Fri Jun 20 02:11:01 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (str_gsub): should preserve last successful match

View file

@ -201,7 +201,7 @@ class Rational
neard = self.denominator.to_f ** (1.0/other.denominator.to_f)
loop do
if (neard**other.denominator == self.denominator)
dem = neaed
dem = neard
break
end
end