summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-02-06 10:37:06 -0500
committerPeter Zhu <peter@peterzhu.ca>2022-02-07 09:52:06 -0500
commita32e5e1b970298590200c2a63e5d4bacce4355ac (patch)
tree034bd876bcfe3f21a3f47d1de8caf65caba9ebb3 /struct.c
parentf9a2802bc58b611a16108bbaf3473cb6195eac0d (diff)
downloadruby-a32e5e1b970298590200c2a63e5d4bacce4355ac.tar.gz
[DOC] Use RDoc link style for links in the same class/module
I used this regex: (?<=\[)#(?:class|module)-([A-Za-z]+)-label-([A-Za-z0-9\-\+]+) And performed a global find & replace for this: rdoc-ref:$1@$2
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/struct.c b/struct.c
index 453ebfc989..0fd54591e8 100644
--- a/struct.c
+++ b/struct.c
@@ -1568,13 +1568,13 @@ rb_struct_dig(int argc, VALUE *argv, VALUE self)
*
* Here, class \Struct provides methods that are useful for:
*
- * - {Creating a Struct Subclass}[#class-Struct-label-Methods+for+Creating+a+Struct+Subclass]
- * - {Querying}[#class-Struct-label-Methods+for+Querying]
- * - {Comparing}[#class-Struct-label-Methods+for+Comparing]
- * - {Fetching}[#class-Struct-label-Methods+for+Fetching]
- * - {Assigning}[#class-Struct-label-Methods+for+Assigning]
- * - {Iterating}[#class-Struct-label-Methods+for+Iterating]
- * - {Converting}[#class-Struct-label-Methods+for+Converting]
+ * - {Creating a Struct Subclass}[rdoc-ref:Struct@Methods+for+Creating+a+Struct+Subclass]
+ * - {Querying}[rdoc-ref:Struct@Methods+for+Querying]
+ * - {Comparing}[rdoc-ref:Struct@Methods+for+Comparing]
+ * - {Fetching}[rdoc-ref:Struct@Methods+for+Fetching]
+ * - {Assigning}[rdoc-ref:Struct@Methods+for+Assigning]
+ * - {Iterating}[rdoc-ref:Struct@Methods+for+Iterating]
+ * - {Converting}[rdoc-ref:Struct@Methods+for+Converting]
*
* === Methods for Creating a Struct Subclass
*