diff options
author | Burdette Lamar <[email protected]> | 2024-07-29 08:11:35 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2024-07-29 09:11:35 -0400 |
commit | 477f672592ca7cad71bdbcd2676a3ade88fcdfd8 (patch) | |
tree | bb13c0f7d40085da013269abf02a6d58845b2e62 | |
parent | d2184e8d462f5238b3ed1362641ed66f079602b7 (diff) |
[DOC] rb_ary_s_create (#11256)
Notes
Notes:
Merged-By: peterzhu2118 <[email protected]>
-rw-r--r-- | array.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |