summaryrefslogtreecommitdiff
path: root/numeric.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 /numeric.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 'numeric.c')
-rw-r--r--numeric.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/numeric.c b/numeric.c
index 20ad13d4c2..7f70b02dad 100644
--- a/numeric.c
+++ b/numeric.c
@@ -958,7 +958,7 @@ num_negative_p(VALUE num)
*
* First, what's elsewhere. \Class \Float:
*
- * - Inherits from {class Numeric}[Numeric.html#class-Numeric-label-What-27s+Here].
+ * - Inherits from {class Numeric}[rdoc-ref:Numeric@What-27s+Here].
*
* Here, class \Float provides methods for:
*
@@ -3495,7 +3495,7 @@ rb_num2ull(VALUE val)
*
* First, what's elsewhere. \Class \Integer:
*
- * - Inherits from {class Numeric}[Numeric.html#class-Numeric-label-What-27s+Here].
+ * - Inherits from {class Numeric}[rdoc-ref:Numeric@What-27s+Here].
*
* Here, class \Integer provides methods for:
*
@@ -6099,8 +6099,8 @@ int_s_try_convert(VALUE self, VALUE num)
*
* First, what's elsewhere. \Class \Numeric:
*
- * - Inherits from {class Object}[Object.html#class-Object-label-What-27s+Here].
- * - Includes {module Comparable}[Comparable.html#module-Comparable-label-What-27s+Here].
+ * - Inherits from {class Object}[rdoc-ref:Object@What-27s+Here].
+ * - Includes {module Comparable}[rdoc-ref:Comparable@What-27s+Here].
*
* Here, class \Numeric provides methods for:
*