mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* array.c (rb_ary_first): RDoc update from Daniel Berger
<djberg96@yahoo.com>. [ruby-core:06577]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
18ab485327
commit
8741340545
2 changed files with 10 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Nov 14 17:36:22 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* array.c (rb_ary_first): RDoc update from Daniel Berger
|
||||||
|
<djberg96@yahoo.com>. [ruby-core:06577].
|
||||||
|
|
||||||
Sun Nov 13 10:55:24 2005 Minero Aoki <aamine@loveruby.net>
|
Sun Nov 13 10:55:24 2005 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
* lib/uri/common.rb (escape): regard second argument as a
|
* lib/uri/common.rb (escape): regard second argument as a
|
||||||
|
|
5
array.c
5
array.c
|
@ -778,8 +778,9 @@ rb_ary_at(VALUE ary, VALUE pos)
|
||||||
* array.first -> obj or nil
|
* array.first -> obj or nil
|
||||||
* array.first(n) -> an_array
|
* array.first(n) -> an_array
|
||||||
*
|
*
|
||||||
* Returns the first element of the array. If the array is empty,
|
* Returns the first element, or the first +n+ elements, of the array.
|
||||||
* returns <code>nil</code>.
|
* If the array is empty, the first form returns <code>nil</code>, and the
|
||||||
|
* second form returns an empty array.
|
||||||
*
|
*
|
||||||
* a = [ "q", "r", "s", "t" ]
|
* a = [ "q", "r", "s", "t" ]
|
||||||
* a.first #=> "q"
|
* a.first #=> "q"
|
||||||
|
|
Loading…
Add table
Reference in a new issue