summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorBurdetteLamar <burdettelamar@yahoo.com>2025-11-25 05:11:52 +0000
committerPeter Zhu <peter@peterzhu.ca>2025-11-28 17:24:13 -0800
commit688350dacc4bab436043bd2435fc64633a1408ce (patch)
treefb1e7063090680c56f0f3ff6afdda317a0f996cc /numeric.c
parent34290048be4a480437bbfff3dc5d8bf93e495d9b (diff)
[DOC] Avoid term 'derived'; use 'subclass'
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/numeric.c b/numeric.c
index a2c91d87a5..54c9649a87 100644
--- a/numeric.c
+++ b/numeric.c
@@ -595,8 +595,8 @@ num_uminus(VALUE num)
* fdiv(other) -> float
*
* Returns the quotient <tt>self/other</tt> as a float,
- * using method +/+ in the derived class of +self+.
- * (\Numeric itself does not define method +/+.)
+ * using method +/+ as defined in the subclass of \Numeric.
+ * (\Numeric itself does not define +/+.)
*
* Of the Core and Standard Library classes,
* only BigDecimal uses this implementation.
@@ -614,8 +614,8 @@ num_fdiv(VALUE x, VALUE y)
* div(other) -> integer
*
* Returns the quotient <tt>self/other</tt> as an integer (via +floor+),
- * using method +/+ in the derived class of +self+.
- * (\Numeric itself does not define method +/+.)
+ * using method +/+ as defined in the subclass of \Numeric.
+ * (\Numeric itself does not define +/+.)
*
* Of the Core and Standard Library classes,
* Only Float and Rational use this implementation.
@@ -847,7 +847,8 @@ num_nonzero_p(VALUE num)
* to_int -> integer
*
* Returns +self+ as an integer;
- * converts using method +to_i+ in the derived class.
+ * converts using method +to_i+ in the subclass of \Numeric.
+ * (\Numeric itself does not define +to_i+.)
*
* Of the Core and Standard Library classes,
* only Rational and Complex use this implementation.