mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
0aeb2336ba
commit
60d2f945fb
2 changed files with 6 additions and 16 deletions
21
ChangeLog
21
ChangeLog
|
@ -3,6 +3,11 @@ Thu Mar 5 18:36:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|||
* numeric.c (flo_to_s): keeps enough precision for round trip.
|
||||
[ruby-core:22325]
|
||||
|
||||
Thu Mar 5 17:42:06 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* 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 <nobu@ruby-lang.org>
|
||||
|
||||
* lib/tmpdir.rb (Dir.tmpdir): not use USERPROFILE, and ignores
|
||||
|
@ -77,22 +82,6 @@ Wed Mar 4 20:27:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|||
|
||||
* win32/setup.mak (-unicows-): checks if unicows.lib is available.
|
||||
|
||||
Wed Mar 4 05:19:27 2009 James Edward Gray II <jeg2@ruby-lang.org>
|
||||
|
||||
* lib/csv.rb: Some minor documentation fixes from Gregory Brown.
|
||||
|
||||
Wed Mar 4 03:42:56 2009 James Edward Gray II <jeg2@ruby-lang.org>
|
||||
|
||||
* 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) <yugui@yugui.jp>
|
||||
|
||||
* 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 <nobu@ruby-lang.org>
|
||||
|
||||
* ext/extmk.rb (extmake): removes object files no longer used and
|
||||
|
|
1
array.c
1
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"]
|
||||
|
|
Loading…
Reference in a new issue