[ci skip] Fix typos in documentation in io.c
This commit is contained in:
parent
5b735d0beb
commit
64200990c4
4
io.c
4
io.c
@ -4056,7 +4056,7 @@ rb_io_gets_internal(VALUE io)
|
|||||||
*
|
*
|
||||||
* With only integer argument +limit+ given,
|
* With only integer argument +limit+ given,
|
||||||
* limits the number of bytes in the line;
|
* limits the number of bytes in the line;
|
||||||
* see {Line Limit}}[rdoc-ref:IO@Line+Limit]:
|
* see {Line Limit}[rdoc-ref:IO@Line+Limit]:
|
||||||
*
|
*
|
||||||
* # No more than one line.
|
* # No more than one line.
|
||||||
* File.open('t.txt') {|f| f.gets(10) } # => "First line"
|
* File.open('t.txt') {|f| f.gets(10) } # => "First line"
|
||||||
@ -4313,7 +4313,7 @@ io_readlines(const struct getline_arg *arg, VALUE io)
|
|||||||
*
|
*
|
||||||
* With only integer argument +limit+ given,
|
* With only integer argument +limit+ given,
|
||||||
* limits the number of bytes in each line;
|
* limits the number of bytes in each line;
|
||||||
* see {Line Limit}}[rdoc-ref:IO@Line+Limit]:
|
* see {Line Limit}[rdoc-ref:IO@Line+Limit]:
|
||||||
*
|
*
|
||||||
* f = File.new('t.txt')
|
* f = File.new('t.txt')
|
||||||
* f.each_line(8) {|line| p line }
|
* f.each_line(8) {|line| p line }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user