diff options
author | Benoit Daloze <eregontp@gmail.com> | 2019-04-27 16:43:28 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2019-04-27 16:43:28 +0200 |
commit | 87d2a2df1b40016401a2f6dfc98e46880bbd18fd (patch) | |
tree | 1f7cd2bd13e1eb12c1a4df04b208bbc5866d4995 /array.c | |
parent | 429fdf3de22690371b98590c4c1d6a53adbbfc26 (diff) | |
download | ruby-87d2a2df1b40016401a2f6dfc98e46880bbd18fd.tar.gz |
Improve documentation of Array.try_convert
* Mostly to try the new git repository.
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -879,8 +879,8 @@ rb_check_to_array(VALUE ary) * call-seq: * Array.try_convert(obj) -> array or nil * - * Tries to convert +obj+ into an array, using +to_ary+ method. Returns the - * converted array or +nil+ if +obj+ cannot be converted for any reason. + * Tries to convert +obj+ into an array, using the +to_ary+ method. Returns + * the converted array or +nil+ if +obj+ cannot be converted. * This method can be used to check if an argument is an array. * * Array.try_convert([1]) #=> [1] |