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

ruby-changes:13196

From: marcandre <ko1@a...>
Date: Wed, 16 Sep 2009 15:02:09 +0900 (JST)
Subject: [ruby-changes:13196] Ruby:r24952 (ruby_1_8): * lib/matrix.rb: Fix typos in doc and indent

marcandre	2009-09-16 15:01:59 +0900 (Wed, 16 Sep 2009)

  New Revision: 24952

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

  Log:
    * lib/matrix.rb: Fix typos in doc and indent

  Modified files:
    branches/ruby_1_8/lib/matrix.rb

Index: ruby_1_8/lib/matrix.rb
===================================================================
--- ruby_1_8/lib/matrix.rb	(revision 24951)
+++ ruby_1_8/lib/matrix.rb	(revision 24952)
@@ -53,7 +53,6 @@
 # * <tt> Matrix.columns(columns)        </tt>
 # * <tt> Matrix.diagonal(*values)       </tt>
 # * <tt> Matrix.scalar(n, value)        </tt>
-# * <tt> Matrix.scalar(n, value)        </tt>
 # * <tt> Matrix.identity(n)             </tt>
 # * <tt> Matrix.unit(n)                 </tt>
 # * <tt> Matrix.I(n)                    </tt>
@@ -125,11 +124,12 @@
   
   #
   # Creates a matrix where +rows+ is an array of arrays, each of which is a row
-  # to the matrix.  If the optional argument +copy+ is false, use the given
+  # of the matrix.  If the optional argument +copy+ is false, use the given
   # arrays as the internal structure of the matrix without copying.
   #   Matrix.rows([[25, 93], [-1, 66]])
   #      =>  25 93
   #          -1 66
+  #
   def Matrix.rows(rows, copy = true)
     new(:init_rows, rows, copy)
   end
@@ -140,7 +140,6 @@
   #      =>  25 -1
   #          93 66
   #
-  #
   def Matrix.columns(columns)
     rows = (0 ... columns[0].size).collect {|i|
       (0 ... columns.size).collect {|j|
@@ -1232,6 +1231,5 @@
   end
 end
 
-
 # Documentation comments:
 #  - Matrix#coerce and Vector#coerce need to be documented

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

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