summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 55bc4b63ef..277fbd30eb 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 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)