From e1c34852dc66a48aff10c53971463f443548e385 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 29 Apr 2010 02:17:12 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ io.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6161ac5bd3..119e5390c6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Apr 29 11:17:08 2010 Nobuyoshi Nakada + + * 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 * lib/xmlrpc/utils.rb: Fixing an incompatibility with diff --git a/io.c b/io.c index b1ca613169..ca33af2804 100644 --- a/io.c +++ b/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 offset, then returns * length bytes (defaulting to the rest of the file). * read 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 offset, then returns * length bytes (defaulting to the rest of the file). - * read ensures the file is closed before returning. + * binread 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"