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

ruby-changes:33155

From: marcandre <ko1@a...>
Date: Sun, 2 Mar 2014 10:54:40 +0900 (JST)
Subject: [ruby-changes:33155] marcandRe: r45234 (trunk): * NEWS-2.1.0: Mention that step can accept a 0 unit. See #9575

marcandre	2014-03-02 10:54:36 +0900 (Sun, 02 Mar 2014)

  New Revision: 45234

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

  Log:
    * NEWS-2.1.0: Mention that step can accept a 0 unit. See #9575

  Modified files:
    trunk/doc/NEWS-2.1.0
Index: doc/NEWS-2.1.0
===================================================================
--- doc/NEWS-2.1.0	(revision 45233)
+++ doc/NEWS-2.1.0	(revision 45234)
@@ -104,6 +104,8 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/doc/NEWS-2.1.0#L104
     * Numeric#step allows the limit argument to be omitted, in which
       case an infinite sequence of numbers is generated.  Keyword
       arguments `to` and `by` are introduced for ease of use.
+      `by` can be 0, in which case the same value will be generated
+      indefinitely.
 
 * Process
   * New methods:

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

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