1
0
Fork 0
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:
nobu 2005-07-14 16:18:44 +00:00
parent ce33ffca61
commit ad46d47e6a

2
enum.c
View file

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