mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 12:14:51 +00:00
Fix typo on Integer.try_convert [ci skip]
This commit is contained in:
parent
637c3cfc5d
commit
b32b755ea2
@ -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.
|
||||
#
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user