Skip to content

Commit

Permalink
Rename parameter name
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nobu committed Jan 29, 2016
1 parent 4f8245b commit 93eb95f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions enum.c
Original file line number Diff line number Diff line change
Expand Up @@ -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+,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 93eb95f

Please sign in to comment.