summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-11 12:16:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-11 12:16:37 +0000
commit8c0b261d48c3473a86a7e92c9101ce98ab94a15a (patch)
treeebcefb4da876594fcb0bef8fcc6c633fc80fcfcd
parente7d6fc01dd72e43cd0ff7c20c3da9f20483822f3 (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
-rw-r--r--ChangeLog5
-rw-r--r--ext/stringio/stringio.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 55bc4b6..277fbd3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Jul 11 21:16:34 2015 ksss <co000ri@gmail.com>
+
+ * ext/stringio/stringio.c (Init_stringio): [DOC] Fix an example,
+ StringIO#puts should be set "\n" at last. [Fix GH-965]
+
Sat Jul 11 12:45:51 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/timeout.rb (Timeout#timeout): remove regexp with wrong line
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c
index 3a59226..c57b40f 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)