summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-12 18:40:07 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-12 18:40:07 +0000
commit70474e9bfc0a3848d66a0fb01b9a4a1a52694b76 (patch)
tree967e801657212a4064548f32cfcf34d9c7fa7f3f /io.c
parent9e98fa9031d9e638fcaf7c7ab4fcf4c7bf4ee529 (diff)
io.c: [DOC] IO#puts uses IO#write
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/io.c b/io.c
index daa352aaa8..f1cdc56692 100644
--- a/io.c
+++ b/io.c
@@ -7181,12 +7181,13 @@ io_puts_ary(VALUE ary, VALUE out, int recur)
* call-seq:
* ios.puts(obj, ...) -> nil
*
- * Writes the given object(s) to <em>ios</em> as with <code>IO#print</code>.
+ * Writes the given object(s) to <em>ios</em> as with <code>IO#write</code>.
* Writes a newline after any that do not already end
* with a newline sequence.
*
* If called with an array argument, writes each element on a new line.
* If called without arguments, outputs a single newline.
+ * This doesn't affect $/. ($RS or INPUT_RECORD_SEPARATOR in English.rb)
*
* $stdout.puts("this", "is", "a", "test")
*