summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorBurdetteLamar <burdettelamar@yahoo.com>2025-12-15 20:35:27 +0000
committerPeter Zhu <peter@peterzhu.ca>2025-12-15 17:27:54 -0500
commitacbf55f4e6658f94e49f28b4df21ab0c29683c4b (patch)
tree32e6986b1df07f45637d120c5b220af18ebd7e05 /numeric.c
parent7fbf321d23f3cc20988c80fae25ce131a5d1b231 (diff)
[DOC] Harmonize #- methods
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/numeric.c b/numeric.c
index cb3ca12904..5f2f4ea797 100644
--- a/numeric.c
+++ b/numeric.c
@@ -1089,7 +1089,7 @@ rb_float_plus(VALUE x, VALUE y)
* call-seq:
* self - other -> numeric
*
- * Returns a new \Float which is the difference of +self+ and +other+:
+ * Returns the difference of +self+ and +other+:
*
* f = 3.14
* f - 1 # => 2.14
@@ -4197,9 +4197,9 @@ fix_minus(VALUE x, VALUE y)
/*
* call-seq:
- * self - numeric -> numeric_result
+ * self - other -> numeric
*
- * Performs subtraction:
+ * Returns the difference of +self+ and +other+:
*
* 4 - 2 # => 2
* -4 - 2 # => -6