From da06ac593926b2a928b3ea8eb00df4ed6f866d42 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 19 Jun 2008 17:17:29 +0000 Subject: * 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 --- ChangeLog | 4 ++++ lib/mathn.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 + + * lib/mathn.rb (Rational::power2): typo fixed. [ruby-core:17293] + Fri Jun 20 02:11:01 2008 Yukihiro Matsumoto * 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 -- cgit