summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorBurdetteLamar <burdettelamar@yahoo.com>2025-12-19 12:45:36 +0000
committerPeter Zhu <peter@peterzhu.ca>2025-12-19 17:09:10 -0500
commitd540903ee77e81dd1ec3dec744273fbb394238fa (patch)
treebd1c8d0924de5fa5cc069cec97c54226224aad1d /numeric.c
parentd9c0d4c71cd3500b2307c518b423ee58eeff9ae5 (diff)
[DOC] Harmonize <= methods
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/numeric.c b/numeric.c
index 3e770ceed3..a71060c55d 100644
--- a/numeric.c
+++ b/numeric.c
@@ -1738,7 +1738,8 @@ flo_lt(VALUE x, VALUE y)
* call-seq:
* self <= other -> true or false
*
- * Returns +true+ if +self+ is numerically less than or equal to +other+:
+ * Returns whether the value of +self+ is less than or equal to the value of +other+;
+ * +other+ must be numeric, but may not be Complex:
*
* 2.0 <= 3 # => true
* 2.0 <= 3.0 # => true
@@ -5081,10 +5082,10 @@ fix_le(VALUE x, VALUE y)
/*
* call-seq:
- * self <= real -> true or false
+ * self <= other -> true or false
*
- * Returns +true+ if the value of +self+ is less than or equal to
- * that of +other+:
+ * Returns whether the value of +self+ is less than or equal to the value of +other+;
+ * +other+ must be numeric, but may not be Complex:
*
* 1 <= 0 # => false
* 1 <= 1 # => true