aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-29 20:57:29 +0000
committerstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-29 20:57:29 +0000
commit3f96221c4637b86a16b8859362c0cab12467b501 (patch)
tree991adc46b278eb83a0554cce52e5eba09737ade6 /io.c
parent296fbf401829be2a56354ac086d9706af6118ace (diff)
downloadruby-3f96221c4637b86a16b8859362c0cab12467b501.tar.gz
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
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/io.c b/io.c
index 8a5d6ab246..aeae864511 100644
--- a/io.c
+++ b/io.c
@@ -1659,11 +1659,11 @@ io_writev(int argc, VALUE *argv, VALUE io)
* 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>