From 60d2f945fb5140f3cb49cadd0a4afa8dab817750 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 6 Mar 2009 04:12:56 +0000 Subject: [PATCH] * array.c (rb_ary_fill): doc for Array#fill misses indication about negative value for the start argument. [ruby-core:22497] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 21 +++++---------------- array.c | 1 + 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5358882f0f..8109f912a5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,11 @@ Thu Mar 5 18:36:38 2009 Nobuyoshi Nakada * numeric.c (flo_to_s): keeps enough precision for round trip. [ruby-core:22325] +Thu Mar 5 17:42:06 2009 Yukihiro Matsumoto + + * array.c (rb_ary_fill): doc for Array#fill misses indication + about negative value for the start argument. [ruby-core:22497] + Thu Mar 5 16:56:14 2009 Nobuyoshi Nakada * lib/tmpdir.rb (Dir.tmpdir): not use USERPROFILE, and ignores @@ -77,22 +82,6 @@ Wed Mar 4 20:27:10 2009 Nobuyoshi Nakada * win32/setup.mak (-unicows-): checks if unicows.lib is available. -Wed Mar 4 05:19:27 2009 James Edward Gray II - - * lib/csv.rb: Some minor documentation fixes from Gregory Brown. - -Wed Mar 4 03:42:56 2009 James Edward Gray II - - * lib/csv.rb: A patch from Madoka Yakamamoto to prevent an infinite - loop while reading some encodings. - -Wed Mar 4 00:54:43 2009 Yuki Sonoda (Yugui) - - * lib/prime.rb (Prime::prime?): used to return a wrong answer. - [ruby-core:22646]. - - * test/test_prime.rb (test_prime?): test case for [ruby-core:22646]. - Tue Mar 3 17:10:09 2009 Nobuyoshi Nakada * ext/extmk.rb (extmake): removes object files no longer used and diff --git a/array.c b/array.c index 79478649c2..d88b369103 100644 --- a/array.c +++ b/array.c @@ -2459,6 +2459,7 @@ rb_ary_clear(VALUE ary) * nil is equivalent to self.length. The last three * forms fill the array with the value of the block. The block is * passed the absolute index of each element to be filled. + * Negative values of start count from the end of the array. * * a = [ "a", "b", "c", "d" ] * a.fill("x") #=> ["x", "x", "x", "x"]