summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-19 17:17:29 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-19 17:17:29 +0000
commite76afc29d8ab491bd69a86504315c4a5dde9616c (patch)
treef26d3706e0365b94e170ea275ad924abc7f229b4 /lib
parent5336cbdfd33b90c92069f55d8c0ba6df4cf66a0e (diff)
* 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
Diffstat (limited to 'lib')
-rw-r--r--lib/mathn.rb2
1 files changed, 1 insertions, 1 deletions
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