aboutsummaryrefslogtreecommitdiffstats
path: root/numeric.c
diff options
context:
space:
mode:
authorBurdetteLamar <burdettelamar@yahoo.com>2023-02-19 20:16:04 +0000
committerJeremy Evans <code@jeremyevans.net>2023-02-19 14:26:34 -0800
commit3b239d2480123046a59a75f1089ab58d192b9c57 (patch)
treea7015491da2508153db26251ad30ac39d6d8a6a8 /numeric.c
parent3d53827130e9f3792e80e9a947d5a0d604aa836b (diff)
downloadruby-3b239d2480123046a59a75f1089ab58d192b9c57.tar.gz
Remove (newly unneeded) remarks about aliases
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/numeric.c b/numeric.c
index 640ba469b4..263fe60d35 100644
--- a/numeric.c
+++ b/numeric.c
@@ -694,8 +694,6 @@ num_div(VALUE x, VALUE y)
* (-r) % r2 # => (119/100)
* (-r) %-r2 # => (-21/100)
*
- * Numeric#modulo is an alias for Numeric#%.
- *
*/
static VALUE
@@ -804,8 +802,6 @@ num_divmod(VALUE x, VALUE y)
* (-34.56).abs #=> 34.56
* -34.56.abs #=> 34.56
*
- * Numeric#magnitude is an alias for Numeric#abs.
- *
*/
static VALUE
@@ -1328,8 +1324,6 @@ rb_float_div(VALUE x, VALUE y)
* f.quo(Rational(2, 1)) # => 1.57
* f.quo(Complex(2, 0)) # => (1.57+0.0i)
*
- * Float#fdiv is an alias for Float#quo.
- *
*/
static VALUE
@@ -1416,8 +1410,6 @@ ruby_float_mod(double x, double y)
* 10.0 % 4.0 # => 2.0
* 10.0 % Rational(4, 1) # => 2.0
*
- * Float#modulo is an alias for Float#%.
- *
*/
static VALUE
@@ -2600,7 +2592,6 @@ float_round_underflow(int ndigits, int binexp)
*
* (0.3 / 0.1).to_i # => 2 (!)
*
- * Float#to_int is an alias for Float#to_i.
*/
static VALUE
@@ -3704,8 +3695,6 @@ int_nobits_p(VALUE num, VALUE mask)
* 1.succ #=> 2
* -1.succ #=> 0
*
- * Integer#next is an alias for Integer#succ.
- *
* Related: Integer#pred (predecessor value).
*/
@@ -3928,9 +3917,6 @@ rb_fix_to_s(VALUE x)
* 78546939656932.to_s(36) # => "rubyrules"
*
* Raises an exception if +base+ is out of range.
- *
- * Integer#inspect is an alias for Integer#to_s.
- *
*/
MJIT_FUNC_EXPORTED VALUE
@@ -4324,8 +4310,6 @@ fix_mod(VALUE x, VALUE y)
* 10 % 3.0 # => 1.0
* 10 % Rational(3, 1) # => (1/1)
*
- * Integer#modulo is an alias for Integer#%.
- *
*/
VALUE
rb_int_modulo(VALUE x, VALUE y)
@@ -4644,9 +4628,6 @@ fix_equal(VALUE x, VALUE y)
* 1 == 1.0 #=> true
*
* Related: Integer#eql? (requires +other+ to be an \Integer).
- *
- * Integer#=== is an alias for Integer#==.
- *
*/
VALUE