1
0
Fork 0
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:
naruse 2011-07-21 08:31:44 +00:00
parent 2dfc9e1626
commit 35f2f9bf13
2 changed files with 6 additions and 1 deletions

View file

@ -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):

View file

@ -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