diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-11 08:59:20 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-11 08:59:20 +0000 |
commit | 9f3d5e71720dc450731ba6e50d589fd5c3c65757 (patch) | |
tree | 64ae739a570316ce8daf6e5ab65fd6b961ecd7a4 /array.c | |
parent | 0935d9536957260d33db5546145c4397912c717e (diff) |
* dir.c (rb_glob): should have called rb_glob_caller().
[ruby-dev:24773]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1148,9 +1148,8 @@ rb_ary_update(ary, beg, len, rpl) * the current capacity of the array, the array grows * automatically. A negative indices will count backward * from the end of the array. Inserts elements if _length_ is - * zero. If +nil+ is used in the second and third form, - * deletes elements from _self_. An +IndexError+ is raised if a - * negative index points past the beginning of the array. See also + * zero. An +IndexError+ is raised if a negative index points + * past the beginning of the array. See also * <code>Array#push</code>, and <code>Array#unshift</code>. * * a = Array.new @@ -1160,7 +1159,8 @@ rb_ary_update(ary, beg, len, rpl) * a[0, 2] = "?" #=> ["?", 2, nil, "4"] * a[0..2] = "A" #=> ["A", "4"] * a[-1] = "Z" #=> ["A", "Z"] - * a[1..-1] = nil #=> ["A"] + * a[1..-1] = nil #=> ["A", nil] + * a[1..-1] = [] #=> ["A"] */ static VALUE |