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

ruby-changes:37136

From: hsbt <ko1@a...>
Date: Mon, 12 Jan 2015 13:34:10 +0900 (JST)
Subject: [ruby-changes:37136] hsbt:r49217 (trunk): * array.c (rb_ary_each): documented return value.

hsbt	2015-01-12 13:33:57 +0900 (Mon, 12 Jan 2015)

  New Revision: 49217

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

  Log:
    * array.c (rb_ary_each): documented return value.
      [misc #10469][ruby-core:66063]

  Modified files:
    trunk/ChangeLog
    trunk/array.c
Index: array.c
===================================================================
--- array.c	(revision 49216)
+++ array.c	(revision 49217)
@@ -1787,9 +1787,9 @@ ary_enum_length(VALUE ary, VALUE args, V https://github.com/ruby/ruby/blob/trunk/array.c#L1787
  *     ary.each                   -> Enumerator
  *
  *  Calls the given block once for each element in +self+, passing that element
- *  as a parameter.
+ *  as a parameter.  Returns the array itself.
  *
- *  An Enumerator is returned if no block is given.
+ *  If no block is given, an Enumerator is returned.
  *
  *     a = [ "a", "b", "c" ]
  *     a.each {|x| print x, " -- " }
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 49216)
+++ ChangeLog	(revision 49217)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Jan 12 13:33:52 2015  SHIBATA Hiroshi  <shibata.hiroshi@g...>
+
+	* array.c (rb_ary_each): documented return value.
+	  [misc #10469][ruby-core:66063]
+
 Sun Jan 11 15:11:38 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* test/webrick/test_utils.rb (test_create_listeners): use

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

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