* ext/stringio/stringio.c (strio_each_byte): Return self instead
of nil as the rdoc says. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c26af9e7ec
commit
f7213e1c52
@ -1,3 +1,8 @@
|
||||
Tue May 27 17:54:35 2008 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* ext/stringio/stringio.c (strio_each_byte): Return self instead
|
||||
of nil as the rdoc says.
|
||||
|
||||
Tue May 27 13:14:53 2008 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* enum.c (enum_to_a): Pass arguments through to #each().
|
||||
|
@ -621,7 +621,7 @@ strio_each_byte(VALUE self)
|
||||
char c = RSTRING_PTR(ptr->string)[ptr->pos++];
|
||||
rb_yield(CHR2FIX(c));
|
||||
}
|
||||
return Qnil;
|
||||
return self;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user