1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

io.c: fix rdoc of append mode

* 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/trunk@46876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-07-19 15:32:46 +00:00
parent f5a43f4a9b
commit c73c34e27f
2 changed files with 10 additions and 5 deletions

View file

@ -1,3 +1,8 @@
Sun Jul 20 00:32:44 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (rb_io_initialize): [DOC] fix rdoc of append mode. it does
not move the pointer at open. [ruby-core:63747] [Bug #10039]
Sat Jul 19 12:40:50 2014 Nobuyoshi Nakada <nobu@ruby-lang.org> Sat Jul 19 12:40:50 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* compile.c (iseq_compile_each): allow to access private attribute * compile.c (iseq_compile_each): allow to access private attribute

10
io.c
View file

@ -7390,12 +7390,12 @@ rb_io_stdio_file(rb_io_t *fptr)
* "w+" Read-write, truncates existing file to zero length * "w+" Read-write, truncates existing file to zero length
* or creates a new file for reading and writing. * or creates a new file for reading and writing.
* *
* "a" Write-only, starts at end of file if file exists, * "a" Write-only, each write call appends data at end of file.
* otherwise creates a new file for writing. * Creates a new file for writing if file does not exist.
* *
* "a+" Read-write, starts at end of file if file exists, * "a+" Read-write, each write call appends data at end of file.
* otherwise creates a new file for reading and * Creates a new file for reading and writing if file does
* writing. * not exist.
* *
* The following modes must be used separately, and along with one or more of * The following modes must be used separately, and along with one or more of
* the modes seen above. * the modes seen above.