summaryrefslogtreecommitdiffstats
path: root/lib/mathn.rb
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
commitda06ac593926b2a928b3ea8eb00df4ed6f866d42 (patch)
treef26d3706e0365b94e170ea275ad924abc7f229b4 /lib/mathn.rb
parentfa01095368dfd0f9204ecb8945ebeb23b4382548 (diff)
downloadruby-da06ac593926b2a928b3ea8eb00df4ed6f866d42.tar.gz
ruby-da06ac593926b2a928b3ea8eb00df4ed6f866d42.tar.xz
ruby-da06ac593926b2a928b3ea8eb00df4ed6f866d42.zip
* lib/mathn.rb (Rational::power2): typo fixed. [ruby-core:17293]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mathn.rb')
-rw-r--r--lib/mathn.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mathn.rb b/lib/mathn.rb
index f3be55eb6..9a4cf3324 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