From e76afc29d8ab491bd69a86504315c4a5dde9616c 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: svn+ssh://ci.ruby-lang.org/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 fdf37e0c36..710e015c53 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 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 -- cgit v1.2.3