From 9caeb7b926c633108619c1a7b9b71ebe04ba0289 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 11 Jul 2015 12:16:37 +0000 Subject: 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 --- ext/stringio/stringio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/stringio') 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) -- cgit v1.2.3