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 | f7213e1c521095a66606d31023b6a1cfea3079b7 (patch) | |
tree | a173c7408a160f537206f7d6d82881891e456b77 /ext/stringio/stringio.c | |
parent | c26af9e7ec49145864fe1e9d4acdef3b4af06c4f (diff) | |
download | ruby-f7213e1c521095a66606d31023b6a1cfea3079b7.tar.gz |
* 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
Diffstat (limited to 'ext/stringio/stringio.c')
-rw-r--r-- | ext/stringio/stringio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index fc589ef55d..b72f5a9a32 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; } /* |