From 60d2f945fb5140f3cb49cadd0a4afa8dab817750 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 6 Mar 2009 04:12:56 +0000 Subject: * 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 --- array.c | 1 + 1 file changed, 1 insertion(+) (limited to 'array.c') 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"] -- cgit v1.2.3