зеркало из https://github.com/github/ruby.git
* 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:
Родитель
90dfc8f99e
Коммит
aec0f808bc
|
@ -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
|
||||||
|
|
7
array.c
7
array.c
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче