ruby-changes:34793
From: nobu <ko1@a...>
Date: Sun, 20 Jul 2014 00:32:58 +0900 (JST)
Subject: [ruby-changes:34793] nobu:r46876 (trunk): io.c: fix rdoc of append mode
nobu 2014-07-20 00:32:46 +0900 (Sun, 20 Jul 2014) New Revision: 46876 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46876 Log: 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] Modified files: trunk/ChangeLog trunk/io.c Index: ChangeLog =================================================================== --- ChangeLog (revision 46875) +++ ChangeLog (revision 46876) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun Jul 20 00:32:44 2014 Nobuyoshi Nakada <nobu@r...> + + * 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@r...> * compile.c (iseq_compile_each): allow to access private attribute Index: io.c =================================================================== --- io.c (revision 46875) +++ io.c (revision 46876) @@ -7390,12 +7390,12 @@ rb_io_stdio_file(rb_io_t *fptr) https://github.com/ruby/ruby/blob/trunk/io.c#L7390 * "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. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/