[DOC] Tweaks for Array#clear
This commit is contained in:
parent
124f1754df
commit
ee6c7ab0cf
Notes:
git
2024-08-21 15:56:54 +00:00
4
array.c
4
array.c
@ -4641,9 +4641,9 @@ rb_ary_replace(VALUE copy, VALUE orig)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* array.clear -> self
|
* clear -> self
|
||||||
*
|
*
|
||||||
* Removes all elements from +self+:
|
* Removes all elements from +self+; returns +self+:
|
||||||
*
|
*
|
||||||
* a = [:foo, 'bar', 2]
|
* a = [:foo, 'bar', 2]
|
||||||
* a.clear # => []
|
* a.clear # => []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user