Skip to content

Commit 688350d

Browse files
BurdetteLamarpeterzhu2118
authored andcommitted
[DOC] Avoid term 'derived'; use 'subclass'
1 parent 3429004 commit 688350d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

numeric.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -595,8 +595,8 @@ num_uminus(VALUE num)
595595
* fdiv(other) -> float
596596
*
597597
* Returns the quotient <tt>self/other</tt> as a float,
598-
* using method +/+ in the derived class of +self+.
599-
* (\Numeric itself does not define method +/+.)
598+
* using method +/+ as defined in the subclass of \Numeric.
599+
* (\Numeric itself does not define +/+.)
600600
*
601601
* Of the Core and Standard Library classes,
602602
* only BigDecimal uses this implementation.
@@ -614,8 +614,8 @@ num_fdiv(VALUE x, VALUE y)
614614
* div(other) -> integer
615615
*
616616
* Returns the quotient <tt>self/other</tt> as an integer (via +floor+),
617-
* using method +/+ in the derived class of +self+.
618-
* (\Numeric itself does not define method +/+.)
617+
* using method +/+ as defined in the subclass of \Numeric.
618+
* (\Numeric itself does not define +/+.)
619619
*
620620
* Of the Core and Standard Library classes,
621621
* Only Float and Rational use this implementation.
@@ -847,7 +847,8 @@ num_nonzero_p(VALUE num)
847847
* to_int -> integer
848848
*
849849
* Returns +self+ as an integer;
850-
* converts using method +to_i+ in the derived class.
850+
* converts using method +to_i+ in the subclass of \Numeric.
851+
* (\Numeric itself does not define +to_i+.)
851852
*
852853
* Of the Core and Standard Library classes,
853854
* only Rational and Complex use this implementation.

0 commit comments

Comments
 (0)