mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* array.c (rb_ary_each_index): should return meaningful value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
23176da722
commit
d9ebaef79b
2 changed files with 5 additions and 0 deletions
1
array.c
1
array.c
|
@ -1193,6 +1193,7 @@ rb_ary_each_index(VALUE ary)
|
|||
{
|
||||
RETURN_ENUMERATOR(ary, 0, 0);
|
||||
ITERATE(each_index_i, ary);
|
||||
return ary;
|
||||
}
|
||||
|
||||
static VALUE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue