diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-19 17:17:29 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-19 17:17:29 +0000 |
commit | e76afc29d8ab491bd69a86504315c4a5dde9616c (patch) | |
tree | f26d3706e0365b94e170ea275ad924abc7f229b4 | |
parent | 5336cbdfd33b90c92069f55d8c0ba6df4cf66a0e (diff) | |
download | ruby-e76afc29d8ab491bd69a86504315c4a5dde9616c.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/mathn.rb | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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 diff --git a/lib/mathn.rb b/lib/mathn.rb index f3be55eb6d..9a4cf33240 100644 --- a/lib/mathn.rb +++ b/lib/mathn.rb @@ -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 |