aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-02-05 14:25:22 -0500
committerPeter Zhu <peter@peterzhu.ca>2022-02-07 09:52:06 -0500
commitecd469fad00611a947aecc6e1e914682d1eec65c (patch)
treeb708d1771e74d368332bf3cead2f057e779cdda3 /io.c
parent981a75db910cd5cfd5ee527a25bdd762918077e3 (diff)
downloadruby-ecd469fad00611a947aecc6e1e914682d1eec65c.tar.gz
[DOC] Fix links in documentation for File and IO
Fixes some typos and dead links.
Diffstat (limited to 'io.c')
-rw-r--r--io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/io.c b/io.c
index 1a2f9c8e8d..08a17aa02b 100644
--- a/io.c
+++ b/io.c
@@ -9068,19 +9068,19 @@ rb_io_set_encoding_by_bom(VALUE io)
* File.new('t.txt')
*
* Optional argument +mode+ (defaults to 'r') must specify a valid mode
- * see {\IO Modes}[#class-IO-label-Modes]:
+ * see {\IO Modes}[rdoc-ref:IO@Modes]:
*
* File.new('t.tmp', 'w')
* File.new('t.tmp', File::RDONLY)
*
* Optional argument +perm+ (defaults to 0666) must specify valid permissions
- * see {File Permissions}[#class-File-label-Permissions]:
+ * see {File Permissions}[rdoc-ref:IO@File+Permissions]:
*
* File.new('t.tmp', File::CREAT, 0644)
* File.new('t.tmp', File::CREAT, 0444)
*
* Optional argument +open_opts+ must specify valid open options
- * see {IO Open Options}[#class-IO-label-Open+Options]:
+ * see {IO Open Options}[rdoc-ref:IO@Open+Options]:
*
* File.new('t.tmp', autoclose: true)
* File.new('t.tmp', internal_encoding: nil)
@@ -14238,7 +14238,7 @@ set_LAST_READ_LINE(VALUE val, ID _x, VALUE *_y)
* - Kernel#readlines
* - IO.foreach
* - IO.readlines
- * - IO#eachline
+ * - IO#each_line
* - IO#gets
* - IO#readline
* - IO#readlines