summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Lo <[email protected]>2024-12-13 22:59:24 +0000
committerAlan Wu <[email protected]>2024-12-13 18:09:39 -0500
commit211857f48fb844da101d9acb0e465d37f6836b96 (patch)
treec74c632887b1057fc531dac1c7dfeb4a51e03b93
parentb37777c36f6cb27d55f4fe44a95b3c970fbf9848 (diff)
Fix incorrect rdoc-ref links in array.rb
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12344
-rw-r--r--array.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/array.c b/array.c
index e2265f654c..44c13a641e 100644
--- a/array.c
+++ b/array.c
@@ -8288,16 +8288,16 @@ rb_ary_deconstruct(VALUE ary)
*
* You can create an \Array object explicitly with:
*
- * - An {array literal}[rdoc-ref:literals.rdoc@Array+Literals]:
+ * - An {array literal}[rdoc-ref:syntax/literals.rdoc@Array+Literals]:
*
* [1, 'one', :one, [2, 'two', :two]]
*
- * - A {%w or %W: string-array Literal}[rdoc-ref:literals.rdoc@25w+and+-25W-3A+String-Array+Literals]:
+ * - A {%w or %W string-array Literal}[rdoc-ref:syntax/literals.rdoc@25w+and+-25W-3A+String-Array+Literals]:
*
* %w[foo bar baz] # => ["foo", "bar", "baz"]
* %w[1 % *] # => ["1", "%", "*"]
*
- * - A {%i pr %I: symbol-array Literal}[rdoc-ref:literals.rdoc@25i+and+-25I-3A+Symbol-Array+Literals]:
+ * - A {%i or %I symbol-array Literal}[rdoc-ref:syntax/literals.rdoc@25i+and+-25I-3A+Symbol-Array+Literals]:
*
* %i[foo bar baz] # => [:foo, :bar, :baz]
* %i[1 % *] # => [:"1", :%, :*]