mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* enumerator.c (enumerator_ptr), lib/generator.rb:
Enumerable::Enumerator is renamed to Enumerator. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d1a70bebcf
commit
3c118f0f04
3 changed files with 7 additions and 2 deletions
|
@ -52,7 +52,7 @@ enumerator_ptr(obj)
|
|||
Data_Get_Struct(obj, struct enumerator, ptr);
|
||||
if (RDATA(obj)->dmark != enumerator_mark) {
|
||||
rb_raise(rb_eTypeError,
|
||||
"wrong argument type %s (expected Enumerable::Enumerator)",
|
||||
"wrong argument type %s (expected Enumerator)",
|
||||
rb_obj_classname(obj));
|
||||
}
|
||||
if (!ptr || ptr->obj == Qundef) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue