diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-11 12:16:37 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-11 12:16:37 +0000 |
commit | 8c0b261d48c3473a86a7e92c9101ce98ab94a15a (patch) | |
tree | ebcefb4da876594fcb0bef8fcc6c633fc80fcfcd /ext/stringio/stringio.c | |
parent | e7d6fc01dd72e43cd0ff7c20c3da9f20483822f3 (diff) |
stringio.c: Fix an example doc [ci skip]
* ext/stringio/stringio.c (Init_stringio): [DOC] Fix an example,
StringIO#puts should be set "\n" at last. [Fix GH-965]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51218 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 3a59226628..c57b40fd93 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -1501,7 +1501,7 @@ strio_set_encoding(int argc, VALUE *argv, VALUE self) * * io = StringIO.new * io.puts "Hello World" - * io.string #=> "Hello World" + * io.string #=> "Hello World\n" */ void Init_stringio(void) |