summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/io_streams.rdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/io_streams.rdoc b/doc/io_streams.rdoc
index a70a84811e..680d5e99c4 100644
--- a/doc/io_streams.rdoc
+++ b/doc/io_streams.rdoc
@@ -406,7 +406,7 @@ which is the non-negative integer line number
in the stream where the next read will occur.
The line number is the number of lines read by certain line-oriented methods
-({::foreach}[https://docs.ruby-lang.org/en/master/IO.html#method-c-foreach],
+({::foreach}[rdoc-ref:IO.foreach],
{#each_line}[rdoc-ref:io_streams.rdoc@Method+-23each_line],
{#gets}[rdoc-ref:io_streams.rdoc@Method+-23gets],
{#readline}[rdoc-ref:io_streams.rdoc@Method+-23readline],