summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-02-06 10:30:11 -0500
committerPeter Zhu <peter@peterzhu.ca>2022-02-07 09:52:06 -0500
commitf9a2802bc58b611a16108bbaf3473cb6195eac0d (patch)
treea635324e276be2aad20146459287c69ae1388eef /struct.c
parentecd469fad00611a947aecc6e1e914682d1eec65c (diff)
[DOC] Use RDoc link style for links to other classes/modules
I used this regex: ([A-Za-z]+)\.html#(?:class|module)-[A-Za-z]+-label-([A-Za-z0-9\-\+]+) And performed a global find & replace for this: rdoc-ref:$1@$2
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5530
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/struct.c b/struct.c
index 5f7899d059..453ebfc989 100644
--- a/struct.c
+++ b/struct.c
@@ -1562,8 +1562,8 @@ rb_struct_dig(int argc, VALUE *argv, VALUE self)
*
* First, what's elsewhere. \Class \Struct:
*
- * - Inherits from {class Object}[Object.html#class-Object-label-What-27s+Here].
- * - Includes {module Enumerable}[Enumerable.html#module-Enumerable-label-What-27s+Here],
+ * - Inherits from {class Object}[rdoc-ref:Object@What-27s+Here].
+ * - Includes {module Enumerable}[rdoc-ref:Enumerable@What-27s+Here],
* which provides dozens of additional methods.
*
* Here, class \Struct provides methods that are useful for: