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

ruby-changes:29541

From: zzak <ko1@a...>
Date: Mon, 24 Jun 2013 02:55:25 +0900 (JST)
Subject: [ruby-changes:29541] zzak:r41593 (trunk): * array.c: Return value in Array overview example found by @PragTob

zzak	2013-06-24 02:55:15 +0900 (Mon, 24 Jun 2013)

  New Revision: 41593

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

  Log:
    * array.c: Return value in Array overview example found by @PragTob
      [Fix GH-336] https://github.com/ruby/ruby/pull/336

  Modified files:
    trunk/ChangeLog
    trunk/array.c

Index: array.c
===================================================================
--- array.c	(revision 41592)
+++ array.c	(revision 41593)
@@ -5425,7 +5425,7 @@ rb_ary_drop_while(VALUE ary) https://github.com/ruby/ruby/blob/trunk/array.c#L5425
  *
  *     arr = [1, 2, 3, 4, 5, 6]
  *     arr.select { |a| a > 3 }     #=> [4, 5, 6]
- *     arr.reject { |a| a < 3 }     #=> [4, 5, 6]
+ *     arr.reject { |a| a < 3 }     #=> [3, 4, 5, 6]
  *     arr.drop_while { |a| a < 4 } #=> [4, 5, 6]
  *     arr                          #=> [1, 2, 3, 4, 5, 6]
  *
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41592)
+++ ChangeLog	(revision 41593)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Jun 24 02:53:09 2013  Zachary Scott  <zachary@z...>
+
+	* array.c: Return value in Array overview example found by @PragTob
+	  [Fix GH-336] https://github.com/ruby/ruby/pull/336
+
 Mon Jun 24 02:45:51 2013  Zachary Scott  <zachary@z...>
 
 	* array.c (rb_ary_zip): typo by @PragTob [Fix GH-337]

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

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