ruby-changes:71117
From: Nobuyoshi <ko1@a...>
Date: Tue, 8 Feb 2022 01:41:48 +0900 (JST)
Subject: [ruby-changes:71117] 8ca7b0b68a (master): [DOC] Fix broken links to operator methods
https://git.ruby-lang.org/ruby.git/commit/?id=8ca7b0b68a From 8ca7b0b68aaff46ad88638f95b26429fee02d04a Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 8 Feb 2022 01:39:37 +0900 Subject: [DOC] Fix broken links to operator methods Once https://github.com/ruby/rdoc/pull/865 is merged, these hacks are no longer needed. --- range.c | 2 +- string.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/range.c b/range.c index 7cdb96b228..2390c5d38c 100644 --- a/range.c +++ b/range.c @@ -2168,7 +2168,7 @@ range_count(int argc, VALUE *argv, VALUE range) https://github.com/ruby/ruby/blob/trunk/range.c#L2168 * * A user-defined class that is to be used in a range * must implement instance <tt><=></tt>; - * see {Integer#<=>}[Integer.html#label-method-i-3C-3D-3E]. + * see {Integer#<=>}[Integer.html#method-i-3C-3D-3E]. * To make iteration available, it must also implement * instance method +succ+; see Integer#succ. * diff --git a/string.c b/string.c index 98b6090ff2..3127080529 100644 --- a/string.c +++ b/string.c @@ -4188,7 +4188,7 @@ rb_str_rindex_m(int argc, VALUE *argv, VALUE str) https://github.com/ruby/ruby/blob/trunk/string.c#L4188 * returned by <tt>object =~ self</tt>. * * Note that <tt>string =~ regexp</tt> is different from <tt>regexp =~ string</tt> - * (see {Regexp#=~}[https://ruby-doc.org/core-2.7.1/Regexp.html#method-i-3D-7E]): + * (see {Regexp#=~}[Regexp.html#method-i-3D~]): * * number= nil * "no. 9" =~ /(?<number>\d+)/ -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/