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

ruby-changes:41612

From: nobu <ko1@a...>
Date: Fri, 29 Jan 2016 16:17:15 +0900 (JST)
Subject: [ruby-changes:41612] nobu:r53686 (trunk): Rename parameter name

nobu	2016-01-29 16:18:10 +0900 (Fri, 29 Jan 2016)

  New Revision: 53686

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

  Log:
    Rename parameter name
    
    * enum.c (enum_take_while, enum_drop_while): rename block
      parameter to obj, since they are generic objects.  [Fix GH-1226]

  Modified files:
    trunk/ChangeLog
    trunk/enum.c
Index: enum.c
===================================================================
--- enum.c	(revision 53685)
+++ enum.c	(revision 53686)
@@ -2575,7 +2575,7 @@ take_while_i(RB_BLOCK_CALL_FUNC_ARGLIST( https://github.com/ruby/ruby/blob/trunk/enum.c#L2575
 
 /*
  *  call-seq:
- *     enum.take_while { |arr| block } -> array
+ *     enum.take_while { |obj| block } -> array
  *     enum.take_while                 -> an_enumerator
  *
  *  Passes elements to the block until the block returns +nil+ or +false+,
@@ -2659,7 +2659,7 @@ drop_while_i(RB_BLOCK_CALL_FUNC_ARGLIST( https://github.com/ruby/ruby/blob/trunk/enum.c#L2659
 
 /*
  *  call-seq:
- *     enum.drop_while { |arr| block }  -> array
+ *     enum.drop_while { |obj| block }  -> array
  *     enum.drop_while                  -> an_enumerator
  *
  *  Drops elements up to, but not including, the first element for
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 53685)
+++ ChangeLog	(revision 53686)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Jan 29 16:17:07 2016  Lucas Buchala  <lucasbuchala@g...>
+
+	* enum.c (enum_take_while, enum_drop_while): rename block
+	  parameter to obj, since they are generic objects.  [Fix GH-1226]
+
 Fri Jan 29 14:15:26 2016  Nobuyoshi Nakada  <nobu@r...>
 
 	* lib/erb.rb (ERB::Compiler#detect_magic_comment): allow

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

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