diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c112806acf..7363c106a2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,5 +1,5 @@ Please see the [official issue tracker], [doc/contributing.rdoc] and wiki [HowToContribute]. [official issue tracker]: https://bugs.ruby-lang.org -[doc/contributing.rdoc]: doc/contributing.rdoc +[doc/contributing.rdoc]: contributing.rdoc [HowToContribute]: https://bugs.ruby-lang.org/projects/ruby/wiki/HowToContribute diff --git a/array.c b/array.c index d3eb7ce6d2..63d63aa17f 100644 --- a/array.c +++ b/array.c @@ -3423,7 +3423,7 @@ static VALUE rb_ary_bsearch_index(VALUE ary); * * Returns an element from +self+ selected by a binary search. * - * See {Binary Searching}[doc/bsearch_rdoc.html]. + * See {Binary Searching}[rdoc-ref:bsearch.rdoc]. */ static VALUE @@ -7628,7 +7628,7 @@ rb_ary_one_p(int argc, VALUE *argv, VALUE ary) * Finds and returns the object in nested objects * that is specified by +index+ and +identifiers+. * The nested objects may be instances of various classes. - * See {Dig Methods}[rdoc-ref:doc/dig_methods.rdoc]. + * See {Dig Methods}[rdoc-ref:dig_methods.rdoc]. * * Examples: * a = [:foo, [:bar, :baz, [:bat, :bam]]] diff --git a/doc/NEWS-3.0.0.md b/doc/NEWS-3.0.0.md index 6ec5a09d79..00c26fe585 100644 --- a/doc/NEWS-3.0.0.md +++ b/doc/NEWS-3.0.0.md @@ -86,7 +86,7 @@ Note that each entry is kept to a minimum, see links for details. `# frozen-string-literal: true` is used. [[Feature #17104]] * Magic comment `shareable_constant_value` added to freeze constants. - See {Magic Comments}[rdoc-ref:doc/syntax/comments.rdoc@Magic+Comments] for more details. + See {Magic Comments}[rdoc-ref:syntax/comments.rdoc@Magic+Comments] for more details. [[Feature #17273]] * A {static analysis}[rdoc-label:label-Static+analysis] foundation is diff --git a/hash.c b/hash.c index fd21a99be0..3fd13ff486 100644 --- a/hash.c +++ b/hash.c @@ -4534,7 +4534,7 @@ rb_hash_any_p(int argc, VALUE *argv, VALUE hash) * Finds and returns the object in nested objects * that is specified by +key+ and +identifiers+. * The nested objects may be instances of various classes. - * See {Dig Methods}[rdoc-ref:doc/dig_methods.rdoc]. + * See {Dig Methods}[rdoc-ref:dig_methods.rdoc]. * * Nested Hashes: * h = {foo: {bar: {baz: 2}}} diff --git a/lib/ostruct.rb b/lib/ostruct.rb index 1203d10e47..c03d912d6f 100644 --- a/lib/ostruct.rb +++ b/lib/ostruct.rb @@ -308,7 +308,7 @@ class OpenStruct # Finds and returns the object in nested objects # that is specified by +name+ and +identifiers+. # The nested objects may be instances of various classes. - # See {Dig Methods}[rdoc-ref:doc/dig_methods.rdoc]. + # See {Dig Methods}[rdoc-ref:dig_methods.rdoc]. # # Examples: # require "ostruct" diff --git a/ractor.rb b/ractor.rb index 1b8cd118fb..ef36b2937f 100644 --- a/ractor.rb +++ b/ractor.rb @@ -195,7 +195,7 @@ # # can not access instance variables of classes/modules from non-main Ractors (RuntimeError) # # See also the description of # shareable_constant_value pragma in -# {Comments syntax}[rdoc-ref:doc/syntax/comments.rdoc] explanation. +# {Comments syntax}[rdoc-ref:syntax/comments.rdoc] explanation. # # == Ractors vs threads # @@ -223,7 +223,7 @@ # # == Reference # -# See {Ractor design doc}[rdoc-ref:doc/ractor.md] for more details. +# See {Ractor design doc}[rdoc-ref:ractor.md] for more details. # class Ractor # diff --git a/range.c b/range.c index 2d49cc112f..3dcced48b8 100644 --- a/range.c +++ b/range.c @@ -664,7 +664,7 @@ bsearch_integer_range(VALUE beg, VALUE end, int excl) * * Returns an element from +self+ selected by a binary search. * - * See {Binary Searching}[doc/bsearch_rdoc.html]. + * See {Binary Searching}[rdoc-ref:bsearch.rdoc]. * */ diff --git a/struct.c b/struct.c index e1c0145c16..c7c95f9002 100644 --- a/struct.c +++ b/struct.c @@ -1366,7 +1366,7 @@ rb_struct_size(VALUE s) * Finds and returns the object in nested objects * that is specified by +key+ and +identifiers+. * The nested objects may be instances of various classes. - * See {Dig Methods}[rdoc-ref:doc/dig_methods.rdoc]. + * See {Dig Methods}[rdoc-ref:dig_methods.rdoc]. * * Examples: * Foo = Struct.new(:a)