ruby-changes:48747
From: kazu <ko1@a...>
Date: Mon, 20 Nov 2017 21:57:13 +0900 (JST)
Subject: [ruby-changes:48747] kazu:r60863 (trunk): [DOC] Fix example result [ci skip]
kazu 2017-11-20 21:57:08 +0900 (Mon, 20 Nov 2017) New Revision: 60863 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60863 Log: [DOC] Fix example result [ci skip] Modified files: trunk/lib/matrix.rb Index: lib/matrix.rb =================================================================== --- lib/matrix.rb (revision 60862) +++ lib/matrix.rb (revision 60863) @@ -254,7 +254,7 @@ class Matrix https://github.com/ruby/ruby/blob/trunk/lib/matrix.rb#L254 # # x = Matrix[[6, 6], [4, 4]] # y = Matrix[[1, 2], [3, 4]] - # Matrix.combine(x, y) {|a, b| a - b} # => Matrix[[5, 4], [1, 2]] + # Matrix.combine(x, y) {|a, b| a - b} # => Matrix[[5, 4], [1, 0]] # def Matrix.combine(*matrices) return to_enum(__method__, *matrices) unless block_given? -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/