mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 21:49:06 +02:00
[DOC] Tweaks for Array#clear
This commit is contained in:
parent
124f1754df
commit
ee6c7ab0cf
Notes:
git
2024-08-21 15:56:54 +00:00
1 changed files with 2 additions and 2 deletions
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…
Add table
Add a link
Reference in a new issue