diff options
author | Matheus Richard <[email protected]> | 2021-12-14 13:46:08 -0300 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-12-15 02:05:41 +0900 |
commit | b32b755ea2446d67fd53b89b68080ad9b66ac68d (patch) | |
tree | 1309601bea04d506c6714d8b6bb4768867bbf0c2 /numeric.rb | |
parent | 637c3cfc5dc2c044c6eeb2793bf399b6745daa8b (diff) |
Fix typo on Integer.try_convert [ci skip]
Diffstat (limited to 'numeric.rb')
-rw-r--r-- | numeric.rb | 2 |
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. # |