summaryrefslogtreecommitdiff
path: root/enumerator.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-16 14:43:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-16 14:43:34 +0000
commit99ce5395afde78317d1d3ea3a6fa6b7ca217c2ce (patch)
tree19e033137cb5440a51c1e4f98d3d14ad66e3bcb2 /enumerator.c
parentc6a782c14eb1967a5a6d0d3aed99ff3d14488072 (diff)
downloadruby-99ce5395afde78317d1d3ea3a6fa6b7ca217c2ce.tar.gz
* 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
Diffstat (limited to 'enumerator.c')
-rw-r--r--enumerator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/enumerator.c b/enumerator.c
index 734bd80577..d1cbd76b64 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -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);