aboutsummaryrefslogtreecommitdiffstats
path: root/array.c
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2019-04-27 16:43:28 +0200
committerBenoit Daloze <eregontp@gmail.com>2019-04-27 16:43:28 +0200
commit87d2a2df1b40016401a2f6dfc98e46880bbd18fd (patch)
tree1f7cd2bd13e1eb12c1a4df04b208bbc5866d4995 /array.c
parent429fdf3de22690371b98590c4c1d6a53adbbfc26 (diff)
downloadruby-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/array.c b/array.c
index 92841128e3..65c9a96de8 100644
--- a/array.c
+++ b/array.c
@@ -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]