summaryrefslogtreecommitdiff
path: root/numeric.rb
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.rb
parent3d53827130e9f3792e80e9a947d5a0d604aa836b (diff)
downloadruby-3b239d2480123046a59a75f1089ab58d192b9c57.tar.gz
Remove (newly unneeded) remarks about aliases
Diffstat (limited to 'numeric.rb')
-rw-r--r--numeric.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/numeric.rb b/numeric.rb
index e852c85bf9..95e33a9403 100644
--- a/numeric.rb
+++ b/numeric.rb
@@ -116,7 +116,6 @@ class Integer
# -12345.abs #=> 12345
# 12345.abs #=> 12345
#
- # Integer#magnitude is an alias for Integer#abs.
def abs
Primitive.attr! 'inline'
Primitive.cexpr! 'rb_int_abs(self)'
@@ -235,8 +234,6 @@ class Integer
# int.to_i -> integer
#
# Since +int+ is already an Integer, returns +self+.
- #
- # #to_int is an alias for #to_i.
def to_i
self
end
@@ -318,8 +315,6 @@ class Float
# -34.56.abs #=> 34.56
# 34.56.abs #=> 34.56
#
- # Float#magnitude is an alias for Float#abs.
- #
def abs
Primitive.attr! 'inline'
Primitive.cexpr! 'rb_float_abs(self)'