summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-03 15:29:56 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-03 15:29:56 +0000
commit17fc590e089ad268d634c85cb7bf94a53a96d596 (patch)
treee61be0f2c391897a5891ab6023b9d8455f75efd5 /io.c
parentf909bee147b4f7559149da43a5bbfa1e75a9b902 (diff)
merge revision(s) r46876: [Backport #10039]
* io.c (rb_io_initialize): [DOC] fix rdoc of append mode. it does not move the pointer at open. [ruby-core:63747] [Bug #10039] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@47377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/io.c b/io.c
index 0ce71108fc..e5b2ac1330 100644
--- a/io.c
+++ b/io.c
@@ -7274,12 +7274,12 @@ rb_io_stdio_file(rb_io_t *fptr)
* "w+" Read-write, truncates existing file to zero length
* or creates a new file for reading and writing.
*
- * "a" Write-only, starts at end of file if file exists,
- * otherwise creates a new file for writing.
+ * "a" Write-only, each write call appends data at end of file.
+ * Creates a new file for writing if file does not exist.
*
- * "a+" Read-write, starts at end of file if file exists,
- * otherwise creates a new file for reading and
- * writing.
+ * "a+" Read-write, each write call appends data at end of file.
+ * Creates a new file for reading and writing if file does
+ * not exist.
*
* The following modes must be used separately, and along with one or more of
* the modes seen above.