From 93eb95f0b97a8c0ad20ee1beeb67eea549a9dfa2 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 29 Jan 2016 07:18:10 +0000 Subject: [PATCH] Rename parameter name * enum.c (enum_take_while, enum_drop_while): rename block parameter to obj, since they are generic objects. [Fix GH-1226] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ enum.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 36c59e19d8..4b7d024950 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Jan 29 16:17:07 2016 Lucas Buchala + + * 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 * lib/erb.rb (ERB::Compiler#detect_magic_comment): allow diff --git a/enum.c b/enum.c index 9f94d2a2f5..681d58f14a 100644 --- a/enum.c +++ b/enum.c @@ -2575,7 +2575,7 @@ take_while_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, ary)) /* * 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(i, args)) /* * 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