summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--lib/mathn.rb2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index fdf37e0c3..710e015c5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 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