1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

get rid of test failures on CI introduced at r56927

* lib/matrix.rb: now ruby warns ambiguous parentheses after a space in method definitions.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2016-11-29 15:23:12 +00:00
parent 18658d7d2c
commit 40c9f1f328

View file

@ -1118,7 +1118,7 @@ class Matrix
# => 67 96
# 48 99
#
def ** (other)
def **(other)
case other
when Integer
x = self
@ -1644,7 +1644,7 @@ class Matrix
end
end
def / (other)
def /(other)
case other
when Numeric
Scalar.new(@value / other)
@ -1657,7 +1657,7 @@ class Matrix
end
end
def ** (other)
def **(other)
case other
when Numeric
Scalar.new(@value ** other)