summaryrefslogtreecommitdiffstats
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
commit8ab5f50d374872e20111ad7e77370ff8ac090042 (patch)
tree02fde37e24ff78efd3439787c83b5641b49c563e /array.c
parent6850c8497c048389481f4ac91120ec5279ceb35b (diff)
downloadruby-8ab5f50d374872e20111ad7e77370ff8ac090042.tar.gz
ruby-8ab5f50d374872e20111ad7e77370ff8ac090042.tar.xz
ruby-8ab5f50d374872e20111ad7e77370ff8ac090042.zip
* array.c (rb_ary_fill): doc for Array#fill misses indication
about negative value for the start argument. [ruby-core:22497] git-svn-id: http://svn.ruby-lang.org/repos/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 79478649c..d88b36910 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"]