summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-06 04:12:56 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-06 04:12:56 +0000
commit60d2f945fb5140f3cb49cadd0a4afa8dab817750 (patch)
tree02fde37e24ff78efd3439787c83b5641b49c563e /array.c
parent0aeb2336ba958d1110a10115b88dbe43522aba3f (diff)
* 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.c1
1 files changed, 1 insertions, 0 deletions
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)
* <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"]