1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[DOC] stated that Array#to_s calls #inspect [ci skip]

[ruby-list:50826]
This commit is contained in:
Nobuyoshi Nakada 2019-09-29 17:28:58 +09:00
parent 289cad501d
commit e2d97cffe5
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -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\"]"
*/