From b0eda56826dad0875670ec31cb9ad73ff61a9f5d Mon Sep 17 00:00:00 2001 From: marcandre Date: Fri, 18 Jul 2014 10:04:15 +0000 Subject: * lib/matrix.rb: Avoid using `and`. Patch by gogo tanaka [#10058] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/matrix.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/matrix.rb b/lib/matrix.rb index 026492b6b8..76bec9228b 100644 --- a/lib/matrix.rb +++ b/lib/matrix.rb @@ -894,7 +894,7 @@ class Matrix return apply_through_coercion(m, __method__) end - Matrix.Raise ErrDimensionMismatch unless row_count == m.row_count and column_count == m.column_count + Matrix.Raise ErrDimensionMismatch unless row_count == m.row_count && column_count == m.column_count rows = Array.new(row_count) {|i| Array.new(column_count) {|j| @@ -921,7 +921,7 @@ class Matrix return apply_through_coercion(m, __method__) end - Matrix.Raise ErrDimensionMismatch unless row_count == m.row_count and column_count == m.column_count + Matrix.Raise ErrDimensionMismatch unless row_count == m.row_count && column_count == m.column_count rows = Array.new(row_count) {|i| Array.new(column_count) {|j| -- cgit v1.2.3