[前][次][番号順一覧][スレッド一覧]

ruby-changes:36513

From: marcandre <ko1@a...>
Date: Thu, 27 Nov 2014 10:03:53 +0900 (JST)
Subject: [ruby-changes:36513] marcandRe: r48595 (trunk): * lib.matrix.rb: Fix typo. Patch by Dimitrios Zorbas. [GH-772]

marcandre	2014-11-27 10:03:46 +0900 (Thu, 27 Nov 2014)

  New Revision: 48595

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48595

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

  Modified files:
    trunk/lib/matrix.rb
Index: lib/matrix.rb
===================================================================
--- lib/matrix.rb	(revision 48594)
+++ lib/matrix.rb	(revision 48595)
@@ -445,7 +445,7 @@ class Matrix https://github.com/ruby/ruby/blob/trunk/lib/matrix.rb#L445
 
   #
   # 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 https://github.com/ruby/ruby/blob/trunk/lib/matrix.rb#L1889
   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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]