[前][次][番号順一覧][スレッド一覧]

ruby-changes:55560

From: Benoit <ko1@a...>
Date: Sat, 27 Apr 2019 23:44:45 +0900 (JST)
Subject: [ruby-changes:55560] Benoit Daloze:87d2a2df1b (trunk): Improve documentation of Array.try_convert

https://git.ruby-lang.org/ruby.git/commit/?id=87d2a2df1b

From 87d2a2df1b40016401a2f6dfc98e46880bbd18fd Mon Sep 17 00:00:00 2001
From: Benoit Daloze <eregontp@g...>
Date: Sat, 27 Apr 2019 16:43:28 +0200
Subject: Improve documentation of Array.try_convert

* Mostly to try the new git repository.

diff --git a/array.c b/array.c
index 9284112..65c9a96 100644
--- a/array.c
+++ b/array.c
@@ -879,8 +879,8 @@ rb_check_to_array(VALUE ary) https://github.com/ruby/ruby/blob/trunk/array.c#L879
  *  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]
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]