io.c: docs for IO#write
* io.c: [DOC] fix example and language in IO#write docs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
524ad5b729
commit
bf9ffeed31
4
io.c
4
io.c
@ -1659,11 +1659,11 @@ io_writev(int argc, VALUE *argv, VALUE io)
|
|||||||
* ios.write(string, ...) -> integer
|
* ios.write(string, ...) -> integer
|
||||||
*
|
*
|
||||||
* Writes the given strings to <em>ios</em>. The stream must be opened
|
* 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
|
* to a string using <code>to_s</code>. Returns the number of bytes
|
||||||
* written in total.
|
* 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"
|
* puts "That was #{count} bytes of data"
|
||||||
*
|
*
|
||||||
* <em>produces:</em>
|
* <em>produces:</em>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user