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

[DOC] Fix example result [ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2017-11-20 12:57:08 +00:00
parent 4b279cfdd2
commit 0e7c83e374

View file

@ -254,7 +254,7 @@ class Matrix
# #
# x = Matrix[[6, 6], [4, 4]] # x = Matrix[[6, 6], [4, 4]]
# y = Matrix[[1, 2], [3, 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) def Matrix.combine(*matrices)
return to_enum(__method__, *matrices) unless block_given? return to_enum(__method__, *matrices) unless block_given?