mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* array.c (rb_ary_delete_at_m): use simple array literal in rdoc.
patched by samuel tonini. [ruby-core:38310] [Bug #5066] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2dfc9e1626
commit
35f2f9bf13
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Jul 21 17:30:21 2011 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* array.c (rb_ary_delete_at_m): use simple array literal in rdoc.
|
||||
patched by samuel tonini. [ruby-core:38310] [Bug #5066]
|
||||
|
||||
Thu Jul 21 17:14:21 2011 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* lib/webrick/httprequest.rb (WEBrick::HTTPRequest#each):
|
||||
|
|
2
array.c
2
array.c
|
@ -2481,7 +2481,7 @@ rb_ary_delete_at(VALUE ary, long pos)
|
|||
* or <code>nil</code> if the index is out of range. See also
|
||||
* <code>Array#slice!</code>.
|
||||
*
|
||||
* a = %w( ant bat cat dog )
|
||||
* a = ["ant", "bat", "cat", "dog"]
|
||||
* a.delete_at(2) #=> "cat"
|
||||
* a #=> ["ant", "bat", "dog"]
|
||||
* a.delete_at(99) #=> nil
|
||||
|
|
Loading…
Add table
Reference in a new issue