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

ruby-changes:40601

From: hsbt <ko1@a...>
Date: Fri, 20 Nov 2015 12:53:43 +0900 (JST)
Subject: [ruby-changes:40601] hsbt:r52680 (trunk): * array.c: clarify docs for take_while/drop_while samples.

hsbt	2015-11-20 12:53:25 +0900 (Fri, 20 Nov 2015)

  New Revision: 52680

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

  Log:
    * array.c: clarify docs for take_while/drop_while samples.
      [ci skip][fix GH-1028] Patch by @leriksen

  Modified files:
    trunk/ChangeLog
    trunk/array.c
Index: array.c
===================================================================
--- array.c	(revision 52679)
+++ array.c	(revision 52680)
@@ -5419,7 +5419,7 @@ rb_ary_take(VALUE obj, VALUE n) https://github.com/ruby/ruby/blob/trunk/array.c#L5419
 
 /*
  *  call-seq:
- *     ary.take_while { |arr| block }  -> new_ary
+ *     ary.take_while { |obj| block }  -> new_ary
  *     ary.take_while                  -> Enumerator
  *
  *  Passes elements to the block until the block returns +nil+ or +false+, then
@@ -5478,7 +5478,7 @@ rb_ary_drop(VALUE ary, VALUE n) https://github.com/ruby/ruby/blob/trunk/array.c#L5478
 
 /*
  *  call-seq:
- *     ary.drop_while { |arr| block }   -> new_ary
+ *     ary.drop_while { |obj| block }   -> new_ary
  *     ary.drop_while                  -> Enumerator
  *
  *  Drops elements up to, but not including, the first element for which the
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52679)
+++ ChangeLog	(revision 52680)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Nov 20 12:53:19 2015  SHIBATA Hiroshi  <hsbt@r...>
+
+	* array.c: clarify docs for take_while/drop_while samples.
+	  [ci skip][fix GH-1028] Patch by @leriksen
+
 Fri Nov 20 12:48:04 2015  SHIBATA Hiroshi  <hsbt@r...>
 
 	* ext/socket/socket.c: remove mention of :UNIX in getaddrinfo().

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

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