diff options
author | Peter Zhu <peter@peterzhu.ca> | 2022-02-06 10:37:06 -0500 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2022-02-07 09:52:06 -0500 |
commit | a32e5e1b970298590200c2a63e5d4bacce4355ac (patch) | |
tree | 034bd876bcfe3f21a3f47d1de8caf65caba9ebb3 /struct.c | |
parent | f9a2802bc58b611a16108bbaf3473cb6195eac0d (diff) |
[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
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5530
Diffstat (limited to 'struct.c')
-rw-r--r-- | struct.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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 * |