[DOC] Tweaks for Array#clear

This commit is contained in:
BurdetteLamar 2024-08-17 14:14:10 +01:00 committed by Peter Zhu
parent 124f1754df
commit ee6c7ab0cf
Notes: git 2024-08-21 15:56:54 +00:00

View File

@ -4641,9 +4641,9 @@ rb_ary_replace(VALUE copy, VALUE orig)
/*
* call-seq:
* array.clear -> self
* clear -> self
*
* Removes all elements from +self+:
* Removes all elements from +self+; returns +self+:
*
* a = [:foo, 'bar', 2]
* a.clear # => []