1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix typo on Integer.try_convert [ci skip]

This commit is contained in:
Matheus Richard 2021-12-14 13:46:08 -03:00 committed by Nobuyoshi Nakada
parent 637c3cfc5d
commit b32b755ea2
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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.
#