Bug #808 ยป io_doc_fix.patch
| io.c (working copy) | ||
|---|---|---|
| 
     /* 
   | 
||
| 
      *  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 
   | 
||
| ... | ... | |
| 
      *  <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 
   | 
||
| ext/stringio/stringio.c (working copy) | ||
|---|---|---|
| 
     /* 
   | 
||
| 
      * call-seq: 
   | 
||
| 
      *   strio.readchar   -> fixnum 
   | 
||
| 
      *   strio.readchar   -> string 
   | 
||
| 
      * 
   | 
||
| 
      * See IO#readchar. 
   | 
||
| 
      */ 
   | 
||