ruby-changes:45694
From: stomar <ko1@a...>
Date: Sat, 4 Mar 2017 04:39:41 +0900 (JST)
Subject: [ruby-changes:45694] stomar:r57767 (trunk): io.c: documentation for puts
stomar 2017-03-04 04:39:35 +0900 (Sat, 04 Mar 2017) New Revision: 57767 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57767 Log: io.c: documentation for puts * io.c: [DOC] clarify that the 'record separator' between arguments passed to 'puts' is always a newline. Based on a patch by Mark Amery. [ruby-core:65801] [Misc #10403] Modified files: trunk/io.c Index: io.c =================================================================== --- io.c (revision 57766) +++ io.c (revision 57767) @@ -7181,11 +7181,12 @@ 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 objects to <em>ios</em> as with - * <code>IO#print</code>. Writes a record separator (typically a - * newline) after any that do not already end with a newline sequence. + * Writes the given object(s) to <em>ios</em> as with <code>IO#print</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 record separator. + * If called without arguments, outputs a single newline. * * $stdout.puts("this", "is", "a", "test") * -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/