diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | io.c | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -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 @@ -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" |