aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-29 15:23:12 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-29 15:23:12 +0000
commit0370044492aa15cf4b27152a74a1545163c5e4d4 (patch)
tree9b0fffe1eff64f871aa152a5bbb4bdf08b668031 /lib
parent3654c052e28b6cf8fe3b8c29748eab0b2f2f1a85 (diff)
downloadruby-0370044492aa15cf4b27152a74a1545163c5e4d4.tar.gz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/matrix.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/matrix.rb b/lib/matrix.rb
index fe61b6d120..eaa4bfc6e1 100644
--- a/lib/matrix.rb
+++ b/lib/matrix.rb
@@ -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)