[前][次][番号順一覧][スレッド一覧]

ruby-changes:74118

From: Nobuyoshi <ko1@a...>
Date: Wed, 19 Oct 2022 08:52:50 +0900 (JST)
Subject: [ruby-changes:74118] 01d56b99bf (master): [DOC] Fix rdoc-ref

https://git.ruby-lang.org/ruby.git/commit/?id=01d56b99bf

From 01d56b99bf1f89b104df789431f698e44d2d547c Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 19 Oct 2022 08:52:29 +0900
Subject: [DOC] Fix rdoc-ref

---
 ext/stringio/stringio.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c
index 7453475303..7e9273f9d6 100644
--- a/ext/stringio/stringio.c
+++ b/ext/stringio/stringio.c
@@ -652,7 +652,7 @@ strio_copy(VALUE copy, VALUE orig) https://github.com/ruby/ruby/blob/trunk/ext/stringio/stringio.c#L652
  *   lineno -> current_line_number
  *
  * Returns the current line number in +self+;
- * see {Line Number}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Line+Number].
+ * see {Line Number}[rdoc-ref:io_streams.rdoc@Line+Number].
  */
 static VALUE
 strio_get_lineno(VALUE self)
@@ -665,7 +665,7 @@ strio_get_lineno(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/stringio/stringio.c#L665
  *   lineno = new_line_number -> new_line_number
  *
  * Sets the current line number in +self+ to the given +new_line_number+;
- * see {Line Number}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Line+Number].
+ * see {Line Number}[rdoc-ref:io_streams.rdoc@Line+Number].
  */
 static VALUE
 strio_set_lineno(VALUE self, VALUE lineno)
@@ -679,7 +679,7 @@ strio_set_lineno(VALUE self, VALUE lineno) https://github.com/ruby/ruby/blob/trunk/ext/stringio/stringio.c#L679
  *   binmode -> self
  *
  * Sets the data mode in +self+ to binary mode;
- * see {Data Mode}[https://docs.ruby-lang.org/en/master/File.html#class-File-label-Data+Mode].
+ * see {Data Mode}[rdoc-ref:File@Data+Mode].
  *
  */
 static VALUE
@@ -740,7 +740,7 @@ strio_reopen(int argc, VALUE *argv, VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/stringio/stringio.c#L740
  *   pos -> stream_position
  *
  * Returns the current position (in bytes);
- * see {Position}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Position].
+ * see {Position}[rdoc-ref:io_streams.rdoc@Position].
  *
  * StringIO#tell is an alias for StringIO#pos.
  */
@@ -755,7 +755,7 @@ strio_get_pos(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/stringio/stringio.c#L755
  *   pos = new_position -> new_position
  *
  * Sets the current position (in bytes);
- * see {Position}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Position].
+ * see {Position}[rdoc-ref:io_streams.rdoc@Position].
  */
 static VALUE
 strio_set_pos(VALUE self, VALUE pos)
@@ -774,8 +774,8 @@ strio_set_pos(VALUE self, VALUE pos) https://github.com/ruby/ruby/blob/trunk/ext/stringio/stringio.c#L774
  *   rewind -> 0
  *
  * Sets the current position and line number to zero;
- * see {Position}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Position]
- * and {Line Number}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Line+Number].
+ * see {Position}[rdoc-ref:io_streams.rdoc@Position]
+ * and {Line Number}[rdoc-ref:io_streams.rdoc@Line+Number].
  */
 static VALUE
 strio_rewind(VALUE self)
@@ -792,7 +792,7 @@ strio_rewind(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/stringio/stringio.c#L792
  *
  * Sets the current position to the given integer +offset+ (in bytes),
  * with respect to a given constant +whence+;
- * see {Position}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Position].
+ * see {Position}[rdoc-ref:io_streams.rdoc@Position].
  */
 static VALUE
 strio_seek(int argc, VALUE *argv, VALUE self)
@@ -848,7 +848,7 @@ strio_get_sync(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/stringio/stringio.c#L848
  *   each_byte {|byte| ... } -> self
  *
  * With a block given, calls the block with each remaining byte in the stream;
- * see {Byte IO}[https://docs.ruby-lang.org/en/master/io_streams_rdoc.html#label-Byte+IO].
+ * see {Byte IO}[rdoc-ref:io_streams.rdoc@Byte+IO].
  *
  * With no block given, returns an enumerator.
  */
-- 
cgit v1.2.3


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]