1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2016-01-29 07:18:10 +00:00
parent 4f8245b703
commit 93eb95f0b9
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Fri Jan 29 16:17:07 2016 Lucas Buchala <lucasbuchala@gmail.com>
* 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@ruby-lang.org>
* lib/erb.rb (ERB::Compiler#detect_magic_comment): allow

4
enum.c
View file

@ -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