1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* enumerator.c (Init_Enumerator): wrong argument specs.

[ruby-core:05481]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2005-07-16 14:43:34 +00:00
parent c6a782c14e
commit 99ce5395af
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Sat Jul 16 23:43:16 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
* enumerator.c (Init_Enumerator): wrong argument specs.
[ruby-core:05481]
Sat Jul 16 15:52:50 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
* win32/win32.[hc]: constified socket functions. [ruby-dev:26553]

View file

@ -404,8 +404,8 @@ enumerator_with_index(obj)
void
Init_Enumerator()
{
rb_define_method(rb_mKernel, "to_enum", obj_to_enum, -2);
rb_define_method(rb_mKernel, "enum_for", obj_to_enum, -2);
rb_define_method(rb_mKernel, "to_enum", obj_to_enum, -1);
rb_define_method(rb_mKernel, "enum_for", obj_to_enum, -1);
rb_define_method(rb_mEnumerable, "enum_with_index", enumerator_enum_with_index, 0);
rb_define_method(rb_mEnumerable, "each_slice", enum_each_slice, 1);