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

ruby-changes:32822

From: hsbt <ko1@a...>
Date: Mon, 10 Feb 2014 14:39:36 +0900 (JST)
Subject: [ruby-changes:32822] hsbt:r44901 (trunk): * enum.c: document that it is OK to take more than available by @mvidner [fix GH-525] [ci skip]

hsbt	2014-02-10 14:39:26 +0900 (Mon, 10 Feb 2014)

  New Revision: 44901

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

  Log:
    * enum.c: document that it is OK to take more than available by @mvidner [fix GH-525] [ci skip]

  Modified files:
    trunk/enum.c
Index: enum.c
===================================================================
--- enum.c	(revision 44900)
+++ enum.c	(revision 44901)
@@ -2141,6 +2141,7 @@ take_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, arg https://github.com/ruby/ruby/blob/trunk/enum.c#L2141
  *
  *     a = [1, 2, 3, 4, 5, 0]
  *     a.take(3)             #=> [1, 2, 3]
+ *     a.take(30)            #=> [1, 2, 3, 4, 5, 0]
  *
  */
 

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

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