[DOC] rb_ary_s_create (#11256)

This commit is contained in:
Burdette Lamar 2024-07-29 08:11:35 -05:00 committed by GitHub
parent d2184e8d46
commit 477f672592
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
Notes: git 2024-07-29 13:11:52 +00:00
Merged-By: peterzhu2118 <peter@peterzhu.ca>

View File

@ -1159,11 +1159,12 @@ rb_ary_initialize(int argc, VALUE *argv, VALUE ary)
}
/*
* Returns a new array populated with the given objects.
* Returns a new +Array+ object, populated with the given objects:
*
* Array[1, 'a', /^A/] # => [1, "a", /^A/]
* Array[] # => []
* Array.[](1, 'a', /^A/) # => [1, "a", /^A/]
*
* Array.[]( 1, 'a', /^A/) # => [1, "a", /^A/]
* Array[ 1, 'a', /^A/ ] # => [1, "a", /^A/]
* [ 1, 'a', /^A/ ] # => [1, "a", /^A/]
*/
static VALUE