[前][次][番号順一覧][スレッド一覧]

ruby-changes:8922

From: nobu <ko1@a...>
Date: Wed, 3 Dec 2008 12:22:27 +0900 (JST)
Subject: [ruby-changes:8922] Ruby:r20458 (trunk): * io.c (rb_io_getc, rb_io_readchar): documentation correction from

nobu	2008-12-03 12:22:12 +0900 (Wed, 03 Dec 2008)

  New Revision: 20458

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20458

  Log:
    * 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.

  Modified files:
    trunk/ChangeLog
    trunk/ext/stringio/stringio.c
    trunk/io.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 20457)
+++ ChangeLog	(revision 20458)
@@ -1,3 +1,10 @@
+Wed Dec  3 12:22:10 2008  Nobuyoshi Nakada  <nobu@r...>
+
+	* 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  <matz@r...>
 
 	* lib/rexml/xpath.rb (REXML::XPath.first): apply documentation
Index: io.c
===================================================================
--- io.c	(revision 20457)
+++ io.c	(revision 20458)
@@ -2688,14 +2688,14 @@
 
 /*
  *  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 @@
  *  <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
Index: ext/stringio/stringio.c
===================================================================
--- ext/stringio/stringio.c	(revision 20457)
+++ ext/stringio/stringio.c	(revision 20458)
@@ -749,7 +749,7 @@
 
 /*
  * call-seq:
- *   strio.readchar   -> fixnum
+ *   strio.readchar   -> string
  *
  * See IO#readchar.
  */

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]