mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* enum.c (enum_member): Enumerable#member? is not an iterator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ce33ffca61
commit
ad46d47e6a
1 changed files with 0 additions and 2 deletions
2
enum.c
2
enum.c
|
@ -870,8 +870,6 @@ enum_member(obj, val)
|
|||
{
|
||||
VALUE memo[2];
|
||||
|
||||
if (!rb_block_given_p()) return enumeratorize(1, &val, obj);
|
||||
|
||||
memo[0] = val;
|
||||
memo[1] = Qfalse;
|
||||
rb_iterate(rb_each, obj, member_i, (VALUE)memo);
|
||||
|
|
Loading…
Reference in a new issue