summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorBurdette Lamar <BurdetteLamar@Yahoo.com>2021-12-03 07:12:28 -0600
committerGitHub <noreply@github.com>2021-12-03 07:12:28 -0600
commit28fb6d6b9e06a632f96244a635a045622a6be276 (patch)
tree1c96616dc764d2b67c83fe9443b7f5ae1f8c9ea8 /numeric.c
parent324d57df0b28982590609d7ae080f82074a82a5c (diff)
downloadruby-28fb6d6b9e06a632f96244a635a045622a6be276.tar.gz
Adding links to literals and Kernel (#5192)
* Adding links to literals and Kernel
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/numeric.c b/numeric.c
index d126e16d29..28b68a71fb 100644
--- a/numeric.c
+++ b/numeric.c
@@ -948,8 +948,11 @@ num_negative_p(VALUE num)
*
* You can create a \Float object explicitly with:
*
- * - Global method {Float}[Kernel.html#method-i-Float].
- * - A {floating-point literal}[doc/syntax/literals_rdoc.html#label-Floating-Point+Literals].
+ * - A {floating-point literal}[doc/syntax/literals_rdoc.html#label-Float+Literals].
+ *
+ * You can convert certain objects to Floats with:
+ *
+ * - \Method {Float}[Kernel.html#method-i-Float].
*
* == What's Here
*
@@ -3479,9 +3482,12 @@ rb_num2ull(VALUE val)
*
* You can create an \Integer object explicitly with:
*
- * - Global method {Integer}[Kernel.html#method-i-Integer].
* - An {integer literal}[doc/syntax/literals_rdoc.html#label-Integer+Literals].
*
+ * You can convert certain objects to Integers with:
+ *
+ * - \Method {Integer}[Kernel.html#method-i-Integer].
+ *
* An attempt to add a singleton method to an instance of this class
* causes an exception to be raised.
*