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

ruby-changes:58002

From: Nobuyoshi <ko1@a...>
Date: Sun, 29 Sep 2019 17:29:24 +0900 (JST)
Subject: [ruby-changes:58002] e2d97cffe5 (master): [DOC] stated that Array#to_s calls #inspect [ci skip]

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

From e2d97cffe5aecc88f3fc4dc7be9a7b3a57bede87 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sun, 29 Sep 2019 17:28:58 +0900
Subject: [DOC] stated that Array#to_s calls #inspect [ci skip]

[ruby-list:50826]

diff --git a/array.c b/array.c
index 3745614..548dda6 100644
--- a/array.c
+++ b/array.c
@@ -2442,7 +2442,8 @@ inspect_ary(VALUE ary, VALUE dummy, int recur) https://github.com/ruby/ruby/blob/trunk/array.c#L2442
  *     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\"]"
  */
-- 
cgit v0.10.2


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

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