diff options
author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-16 08:24:15 +0000 |
---|---|---|
committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-16 08:24:15 +0000 |
commit | 405cfda0d225cca0a87ee51d8380a11b336b0b8c (patch) | |
tree | e5839f24070edfe642d372a91851b01758c35035 | |
parent | e353346e14fd765b9ecab512025e25471ba1d762 (diff) | |
download | ruby-405cfda0d225cca0a87ee51d8380a11b336b0b8c.tar.gz |
* lib/matrix.rb (Matrix#/): Fix obvious bug
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/matrix.rb | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Wed Sep 16 17:20:49 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca> + + * lib/matrix.rb (Matrix#/): Fix obvious bug + Wed Sep 16 16:59:34 2009 NAKAMURA Usaku <usa@ruby-lang.org> * win32/Makefile.sub (DOCTARGETS): rdoc is default. diff --git a/lib/matrix.rb b/lib/matrix.rb index 33e5eadb59..bb2d9af36d 100644 --- a/lib/matrix.rb +++ b/lib/matrix.rb @@ -546,7 +546,7 @@ class Matrix return self * other.inverse else x, y = other.coerce(self) - rerurn x / y + return x / y end end |