зеркало из https://github.com/github/ruby.git
* io.c (rb_io_s_binread): fixed rdoc. parts of a patch from Roger
Pack in [ruby-core:29861]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
9f8073c819
Коммит
e1c34852dc
|
@ -1,3 +1,8 @@
|
|||
Thu Apr 29 11:17:08 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* io.c (rb_io_s_binread): fixed rdoc. parts of a patch from Roger
|
||||
Pack in [ruby-core:29861].
|
||||
|
||||
Thu Apr 29 03:50:49 2010 James Edward Gray II <jeg2@ruby-lang.org>
|
||||
|
||||
* lib/xmlrpc/utils.rb: Fixing an incompatibility with
|
||||
|
|
6
io.c
6
io.c
|
@ -7922,7 +7922,7 @@ seek_before_read(struct seek_arg *arg)
|
|||
* IO.read(name, [length [, offset]] ) => string
|
||||
* IO.read(name, [length [, offset]], open_args) => string
|
||||
*
|
||||
* Opens the file, optionally seeks to the given offset, then returns
|
||||
* Opens the file, optionally seeks to the given <i>offset</i>, then returns
|
||||
* <i>length</i> bytes (defaulting to the rest of the file).
|
||||
* <code>read</code> ensures the file is closed before returning.
|
||||
*
|
||||
|
@ -7978,9 +7978,9 @@ rb_io_s_read(int argc, VALUE *argv, VALUE io)
|
|||
* call-seq:
|
||||
* IO.binread(name, [length [, offset]] ) => string
|
||||
*
|
||||
* Opens the file, optionally seeks to the given offset, then returns
|
||||
* Opens the file, optionally seeks to the given <i>offset</i>, then returns
|
||||
* <i>length</i> bytes (defaulting to the rest of the file).
|
||||
* <code>read</code> ensures the file is closed before returning.
|
||||
* <code>binread</code> ensures the file is closed before returning.
|
||||
* The open mode would be "rb:ASCII-8BIT".
|
||||
*
|
||||
* IO.binread("testfile") #=> "This is line one\nThis is line two\nThis is line three\nAnd so on...\n"
|
||||
|
|
Загрузка…
Ссылка в новой задаче