* array.c (rb_ary_s_create): Add example results for Array::[]. Patch

by Jonathan Mukai.  [Ruby 1.9 - Bug #5215]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2011-10-03 22:31:25 +00:00
Родитель 90dfc8f99e
Коммит aec0f808bc
2 изменённых файлов: 11 добавлений и 7 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Tue Oct 4 07:30:50 2011 Eric Hodel <drbrain@segment7.net>
* array.c (rb_ary_s_create): Add example results for Array::[]. Patch
by Jonathan Mukai. [Ruby 1.9 - Bug #5215]
Tue Oct 4 07:15:17 2011 Eric Hodel <drbrain@segment7.net> Tue Oct 4 07:15:17 2011 Eric Hodel <drbrain@segment7.net>
* lib/rubygems: Update to RubyGems 1.8.11. Move Deprecate into the * lib/rubygems: Update to RubyGems 1.8.11. Move Deprecate into the

Просмотреть файл

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