ruby-changes:48457
From: stomar <ko1@a...>
Date: Mon, 30 Oct 2017 05:57:34 +0900 (JST)
Subject: [ruby-changes:48457] stomar:r60571 (trunk): io.c: docs for IO#write
stomar 2017-10-30 05:57:29 +0900 (Mon, 30 Oct 2017) New Revision: 60571 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60571 Log: io.c: docs for IO#write * io.c: [DOC] fix example and language in IO#write docs. Modified files: trunk/io.c Index: io.c =================================================================== --- io.c (revision 60570) +++ io.c (revision 60571) @@ -1659,11 +1659,11 @@ io_writev(int argc, VALUE *argv, VALUE i https://github.com/ruby/ruby/blob/trunk/io.c#L1659 * ios.write(string, ...) -> integer * * Writes the given strings to <em>ios</em>. The stream must be opened - * for writing. If each argument is not a string, they will be converted + * for writing. Arguments that are not a string will be converted * to a string using <code>to_s</code>. Returns the number of bytes * written in total. * - * count = $stdout.write("This is", "a test\n") + * count = $stdout.write("This is", " a test\n") * puts "That was #{count} bytes of data" * * <em>produces:</em> -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/