aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-03 03:22:12 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-03 03:22:12 +0000
commitaa39c4491a93992ae6f536179af447ab48e5ffa8 (patch)
treecea2524839db3a2101d45b84a6be0e765a80f58a /io.c
parentfea206e9b99580892ee51f1310653876cb4e8793 (diff)
downloadruby-aa39c4491a93992ae6f536179af447ab48e5ffa8.tar.gz
* 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
Diffstat (limited to 'io.c')
-rw-r--r--io.c10
1 files changed, 5 insertions, 5 deletions
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 <em>ios</em>. Returns
* <code>nil</code> 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)
* <code>EOFError</code> on end of file.
*
* f = File.new("testfile")
- * f.readchar #=> "8"
- * f.readchar #=> "1"
+ * f.readchar #=> "h"
+ * f.readchar #=> "e"
*/
static VALUE