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

* lib.matrix.rb: Fix typo. Patch by Dimitrios Zorbas. [GH-772]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
marcandre 2014-11-27 01:03:46 +00:00
parent 06b582a0b0
commit 969057c95a

View file

@ -445,7 +445,7 @@ class Matrix
#
# Yields all elements of the matrix, starting with those of the first row,
# or returns an Enumerator is no block given.
# or returns an Enumerator if no block given.
# Elements can be restricted by passing an argument:
# * :all (default): yields all elements
# * :diagonal: yields only elements on the diagonal
@ -1889,14 +1889,14 @@ class Vector
end
#
# Return a copy of the vector.
# Returns a copy of the vector.
#
def clone
self.class.elements(@elements)
end
#
# Return a hash-code for the vector.
# Returns a hash-code for the vector.
#
def hash
@elements.hash