[前][次][番号順一覧][スレッド一覧]

ruby-changes:44858

From: usa <ko1@a...>
Date: Wed, 30 Nov 2016 00:23:15 +0900 (JST)
Subject: [ruby-changes:44858] usa:r56931 (trunk): get rid of test failures on CI introduced at r56927

usa	2016-11-30 00:23:12 +0900 (Wed, 30 Nov 2016)

  New Revision: 56931

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56931

  Log:
    get rid of test failures on CI introduced at r56927
    
    * lib/matrix.rb: now ruby warns ambiguous parentheses after a space in method definitions.

  Modified files:
    trunk/lib/matrix.rb
Index: lib/matrix.rb
===================================================================
--- lib/matrix.rb	(revision 56930)
+++ lib/matrix.rb	(revision 56931)
@@ -1118,7 +1118,7 @@ class Matrix https://github.com/ruby/ruby/blob/trunk/lib/matrix.rb#L1118
   #     => 67 96
   #        48 99
   #
-  def ** (other)
+  def **(other)
     case other
     when Integer
       x = self
@@ -1644,7 +1644,7 @@ class Matrix https://github.com/ruby/ruby/blob/trunk/lib/matrix.rb#L1644
       end
     end
 
-    def / (other)
+    def /(other)
       case other
       when Numeric
         Scalar.new(@value / other)
@@ -1657,7 +1657,7 @@ class Matrix https://github.com/ruby/ruby/blob/trunk/lib/matrix.rb#L1657
       end
     end
 
-    def ** (other)
+    def **(other)
       case other
       when Numeric
         Scalar.new(@value ** other)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]