From e2d97cffe5aecc88f3fc4dc7be9a7b3a57bede87 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 29 Sep 2019 17:28:58 +0900 Subject: [PATCH] [DOC] stated that Array#to_s calls #inspect [ci skip] [ruby-list:50826] --- array.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/array.c b/array.c index 37456147b1..548dda6d4a 100644 --- a/array.c +++ b/array.c @@ -2442,7 +2442,8 @@ inspect_ary(VALUE ary, VALUE dummy, int recur) * ary.inspect -> string * ary.to_s -> string * - * Creates a string representation of +self+. + * Creates a string representation of +self+, by calling #inspect + * method on each elements. * * [ "a", "b", "c" ].to_s #=> "[\"a\", \"b\", \"c\"]" */