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

ruby-changes:42545

From: ktsj <ko1@a...>
Date: Sun, 17 Apr 2016 19:38:18 +0900 (JST)
Subject: [ruby-changes:42545] ktsj:r54619 (trunk): * array.c (rb_ary_sum): [DOC] fix typos.

ktsj	2016-04-17 20:34:52 +0900 (Sun, 17 Apr 2016)

  New Revision: 54619

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

  Log:
    * array.c (rb_ary_sum): [DOC] fix typos.

  Modified files:
    trunk/array.c
Index: array.c
===================================================================
--- array.c	(revision 54618)
+++ array.c	(revision 54619)
@@ -5659,7 +5659,7 @@ rb_ary_dig(int argc, VALUE *argv, VALUE https://github.com/ruby/ruby/blob/trunk/array.c#L5659
  * For example, [e1, e2, e3].sum returns init + e1 + e2 + e3.
  *
  * If a block is given, the block is applied to each element
- * before addtion.
+ * before addition.
  *
  * If <i>ary</i> is empty, it returns <i>init</i>.
  *
@@ -5670,7 +5670,7 @@ rb_ary_dig(int argc, VALUE *argv, VALUE https://github.com/ruby/ruby/blob/trunk/array.c#L5670
  *   [2.5, 3.0].sum(0.0) {|e| e * e }   #=> 15.25
  *   [Object.new].sum                   #=> TypeError
  *
- * The (arithmetic) mean value of an array can be obtained* as follows.
+ * The (arithmetic) mean value of an array can be obtained as follows.
  *
  *   mean = ary.sum(0.0) / ary.length
  *

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

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