diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | array.c | 2 |
2 files changed, 6 insertions, 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): @@ -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 |