diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-06 04:12:56 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-06 04:12:56 +0000 |
commit | 60d2f945fb5140f3cb49cadd0a4afa8dab817750 (patch) | |
tree | 02fde37e24ff78efd3439787c83b5641b49c563e /array.c | |
parent | 0aeb2336ba958d1110a10115b88dbe43522aba3f (diff) | |
download | ruby-60d2f945fb5140f3cb49cadd0a4afa8dab817750.tar.gz |
* 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
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2459,6 +2459,7 @@ rb_ary_clear(VALUE ary) * <code>nil</code> is equivalent to <i>self.length</i>. 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 <i>start</i> count from the end of the array. * * a = [ "a", "b", "c", "d" ] * a.fill("x") #=> ["x", "x", "x", "x"] |