Project

General

Profile

Bug #5215 ยป 0001-Clarified-some-documentation-for-Array-method.patch

johnnymugs (Jonathan Mukai), 08/23/2011 11:14 AM

View differences:

array.c
/*
* Returns a new array populated with the given objects.
*
* Array.[]( 1, 'a', /^A/ )
* 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
    (1-1/1)