aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-03 19:39:35 +0000
committerstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-03 19:39:35 +0000
commitf6394d77ebbf716a2072f84c50962392b81d8948 (patch)
tree1c74f5902340737588b54708e1572d4c09261976 /io.c
parent6e6f0364384f28ead9cc70b83e2399dcf2f5e1de (diff)
downloadruby-f6394d77ebbf716a2072f84c50962392b81d8948.tar.gz
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] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/io.c b/io.c
index 89a8c7ad95..7b258b0327 100644
--- a/io.c
+++ b/io.c
@@ -7181,11 +7181,12 @@ io_puts_ary(VALUE ary, VALUE out, int recur)
* 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")
*