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:
parent
4b279cfdd2
commit
0e7c83e374
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ class Matrix
|
|||
#
|
||||
# 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?
|
||||
|
|
Loading…
Reference in a new issue