From 70474e9bfc0a3848d66a0fb01b9a4a1a52694b76 Mon Sep 17 00:00:00 2001 From: naruse Date: Sun, 12 Mar 2017 18:40:07 +0000 Subject: [PATCH] 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 --- io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ios as with IO#print. + * Writes the given object(s) to ios as with IO#write. * 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") *