ruby-changes:45871
From: naruse <ko1@a...>
Date: Mon, 13 Mar 2017 03:40:11 +0900 (JST)
Subject: [ruby-changes:45871] naruse:r57944 (trunk): io.c: [DOC] IO#puts uses IO#write
naruse 2017-03-13 03:40:07 +0900 (Mon, 13 Mar 2017) New Revision: 57944 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57944 Log: io.c: [DOC] IO#puts uses IO#write Modified files: trunk/io.c Index: io.c =================================================================== --- io.c (revision 57943) +++ io.c (revision 57944) @@ -7181,12 +7181,13 @@ io_puts_ary(VALUE ary, VALUE out, int re https://github.com/ruby/ruby/blob/trunk/io.c#L7181 * 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") * -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/