diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-27 08:55:59 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-27 08:55:59 +0000 |
commit | 0bc19f3b711a0eceda718be46a80272024683c05 (patch) | |
tree | a173c7408a160f537206f7d6d82881891e456b77 | |
parent | 43f23e89479d724ace2b38d5043bb1f38535aabd (diff) | |
download | ruby-0bc19f3b711a0eceda718be46a80272024683c05.tar.gz ruby-0bc19f3b711a0eceda718be46a80272024683c05.tar.xz ruby-0bc19f3b711a0eceda718be46a80272024683c05.zip |
* ext/stringio/stringio.c (strio_each_byte): Return self instead
of nil as the rdoc says.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/stringio/stringio.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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(). diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index fc589ef55..b72f5a9a3 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -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; } /* |