Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions io.c
Original file line number Diff line number Diff line change
Expand Up @@ -6971,15 +6971,16 @@ rb_f_printf(int argc, VALUE *argv)
* ios.print() -> nil
* ios.print(obj, ...) -> nil
*
* Writes the given object(s) to <em>ios</em>. The stream must be
* opened for writing. If the output field separator (<code>$,</code>)
* is not <code>nil</code>, it will be inserted between each object.
* If the output record separator (<code>$\\</code>)
* is not <code>nil</code>, it will be appended to the output. If no
* arguments are given, prints <code>$_</code>. Objects that aren't
* strings will be converted by calling their <code>to_s</code> method.
* With no argument, prints the contents of the variable <code>$_</code>.
* Returns <code>nil</code>.
* Writes the given object(s) to <em>ios</em>. The stream must be opened for writing.
*
* Each given object that isn't a string will be converted to one by calling
* its <code>to_s</code> method. It always returns <code>nil</code>.
*
* When called without arguments it prints out the contents of <code>$_</code>.
* If the <em>output field separator</em> (<code>$,</code>) is not <code>nil</code>,
* and is a string, it is inserted between objects.
* If the <em>output record separator</em> (<code>$\\</code>) is not <code>nil</code>,
* and is a string, it is appended to the output.
*
* $stdout.print("This is ", 100, " percent.\n")
*
Expand Down