summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorBurdetteLamar <burdettelamar@yahoo.com>2025-11-20 20:57:34 +0000
committerPeter Zhu <peter@peterzhu.ca>2025-11-20 14:06:41 -0800
commit826e91a7e2c427f604f47f775d156d1d398dadc6 (patch)
treec869ffa7f1b1e834ad29b96c7a1b936f2fa47196 /numeric.c
parentff1d23eccba3ab37e77bf2d2222cad9d6f99a0ab (diff)
[DOC] Harmonize mod methods
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 3d6648f7d6..0d5f3f26f6 100644
--- a/numeric.c
+++ b/numeric.c
@@ -633,7 +633,7 @@ num_div(VALUE x, VALUE y)
* call-seq:
* self % other -> real_numeric
*
- * Returns +self+ modulo +other+ as a real number.
+ * Returns +self+ modulo +other+ as a real numeric (\Integer, \Float, or \Rational).
*
* Of the Core and Standard Library classes,
* only Rational uses this implementation.
@@ -1358,7 +1358,7 @@ ruby_float_mod(double x, double y)
* call-seq:
* self % other -> float
*
- * Returns +self+ modulo +other+ as a float.
+ * Returns +self+ modulo +other+ as a \Float.
*
* For float +f+ and real number +r+, these expressions are equivalent:
*
@@ -4316,9 +4316,9 @@ fix_mod(VALUE x, VALUE y)
/*
* call-seq:
- * self % other -> real_number
+ * self % other -> real_numeric
*
- * Returns +self+ modulo +other+ as a real number.
+ * Returns +self+ modulo +other+ as a real numeric (\Integer, \Float, or \Rational).
*
* For integer +n+ and real number +r+, these expressions are equivalent:
*