mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix Array#reject, was working like Array#reject\!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
dcf4a0a1f6
commit
3e7566d8fb
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Sun Dec 31 16:22:48 2006 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
|
* array.c: Fix Array#reject.
|
||||||
|
|
||||||
Sun Dec 31 00:46:25 2006 Tadayoshi Funaba <tadf@dotrb.org>
|
Sun Dec 31 00:46:25 2006 Tadayoshi Funaba <tadf@dotrb.org>
|
||||||
|
|
||||||
* lib/date2.rb: removed.
|
* lib/date2.rb: removed.
|
||||||
|
|
4
array.c
4
array.c
|
@ -1942,7 +1942,9 @@ static VALUE
|
||||||
rb_ary_reject(VALUE ary)
|
rb_ary_reject(VALUE ary)
|
||||||
{
|
{
|
||||||
RETURN_ENUMERATOR(ary, 0, 0);
|
RETURN_ENUMERATOR(ary, 0, 0);
|
||||||
return rb_ary_reject_bang(rb_ary_dup(ary));
|
ary = rb_ary_dup(ary);
|
||||||
|
rb_ary_reject_bang(ary);
|
||||||
|
return ary;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue