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

* 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:
knu 2008-05-27 08:55:59 +00:00
parent c26af9e7ec
commit f7213e1c52
2 changed files with 6 additions and 1 deletions

View file

@ -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().

View file

@ -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;
}
/*