* 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
Родитель 06b582a0b0
Коммит 969057c95a
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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