From 477f672592ca7cad71bdbcd2676a3ade88fcdfd8 Mon Sep 17 00:00:00 2001 From: Burdette Lamar Date: Mon, 29 Jul 2024 08:11:35 -0500 Subject: [PATCH] [DOC] rb_ary_s_create (#11256) --- array.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/array.c b/array.c index 4084876b42..0a4152f5e9 100644 --- a/array.c +++ b/array.c @@ -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