From aa39c4491a93992ae6f536179af447ab48e5ffa8 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 3 Dec 2008 03:22:12 +0000 Subject: [PATCH] * io.c (rb_io_getc, rb_io_readchar): documentation correction from Emiel van de Laar. [ruby-core:20212] * ext/stringio/stringio.c (strio_ungetbyte): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 7 +++++++ ext/stringio/stringio.c | 2 +- io.c | 10 +++++----- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index a6abd45b20..a3d7361caf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Wed Dec 3 12:22:10 2008 Nobuyoshi Nakada + + * io.c (rb_io_getc, rb_io_readchar): documentation correction from + Emiel van de Laar. [ruby-core:20212] + + * ext/stringio/stringio.c (strio_ungetbyte): ditto. + Wed Dec 3 09:26:29 2008 Yukihiro Matsumoto * lib/rexml/xpath.rb (REXML::XPath.first): apply documentation diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index 4c997dcd04..4ff0e36c69 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -749,7 +749,7 @@ strio_ungetbyte(VALUE self, VALUE c) /* * call-seq: - * strio.readchar -> fixnum + * strio.readchar -> string * * See IO#readchar. */ diff --git a/io.c b/io.c index 810f385dd8..b4bd70fb01 100644 --- a/io.c +++ b/io.c @@ -2688,14 +2688,14 @@ rb_io_chars(VALUE io) /* * call-seq: - * ios.getc => fixnum or nil + * ios.getc => string or nil * * Reads a one-character string from ios. Returns * nil if called at end of file. * * f = File.new("testfile") - * f.getc #=> "8" - * f.getc #=> "1" + * f.getc #=> "h" + * f.getc #=> "e" */ static VALUE @@ -2720,8 +2720,8 @@ rb_io_getc(VALUE io) * EOFError on end of file. * * f = File.new("testfile") - * f.readchar #=> "8" - * f.readchar #=> "1" + * f.readchar #=> "h" + * f.readchar #=> "e" */ static VALUE