Skip to content

Commit

Permalink
Improve documentation of Array.try_convert
Browse files Browse the repository at this point in the history
* Mostly to try the new git repository.
  • Loading branch information
eregon committed Apr 27, 2019
1 parent 429fdf3 commit 87d2a2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions array.c
Expand Up @@ -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]
Expand Down

0 comments on commit 87d2a2d

Please sign in to comment.