1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2008-12-03 03:22:12 +00:00
parent fea206e9b9
commit aa39c4491a
3 changed files with 13 additions and 6 deletions

View file

@ -1,3 +1,10 @@
Wed Dec 3 12:22:10 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* 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@ruby-lang.org>
* lib/rexml/xpath.rb (REXML::XPath.first): apply documentation

View file

@ -749,7 +749,7 @@ strio_ungetbyte(VALUE self, VALUE c)
/*
* call-seq:
* strio.readchar -> fixnum
* strio.readchar -> string
*
* See IO#readchar.
*/

10
io.c
View file

@ -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