summaryrefslogtreecommitdiff
path: root/lib/matrix.rb
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-27 01:03:46 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-27 01:03:46 +0000
commit969057c95a4d8c26cf58dd99dff3dbface11f1cd (patch)
tree2160048ddbde4f1602b5751a025962164dd22e82 /lib/matrix.rb
parent06b582a0b0c8c283c0bf41f1f506d92f619685ee (diff)
* 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
Diffstat (limited to 'lib/matrix.rb')
-rw-r--r--lib/matrix.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/matrix.rb b/lib/matrix.rb
index 569680f..fb98d09 100644
--- a/lib/matrix.rb
+++ b/lib/matrix.rb
@@ -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