summaryrefslogtreecommitdiff
path: root/numeric.rb
diff options
context:
space:
mode:
authorMatheus Richard <matheusrichardt@gmail.com>2021-12-14 13:46:08 -0300
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-12-15 02:05:41 +0900
commitb32b755ea2446d67fd53b89b68080ad9b66ac68d (patch)
tree1309601bea04d506c6714d8b6bb4768867bbf0c2 /numeric.rb
parent637c3cfc5dc2c044c6eeb2793bf399b6745daa8b (diff)
Fix typo on Integer.try_convert [ci skip]
Diffstat (limited to 'numeric.rb')
-rw-r--r--numeric.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/numeric.rb b/numeric.rb
index d48a4ee336..eea1ac96cd 100644
--- a/numeric.rb
+++ b/numeric.rb
@@ -237,7 +237,7 @@ end
# Otherwise if +object+ responds to <tt>:to_int</tt>,
# calls <tt>object.to_int</tt> and returns the result.
#
-# Returns +nil+ if +object+ does not respond to <tt>:to_ary</tt>
+# Returns +nil+ if +object+ does not respond to <tt>:to_int</tt>
#
# Raises an exception unless <tt>object.to_int</tt> returns an \Integer object.
#