mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
strings, builtin: remove strings.Builder.clear()
, fix array.clear()
not working in the JS backend (#23992)
This commit is contained in:
parent
20d7d9758b
commit
15c0e6f2bd
3 changed files with 3 additions and 12 deletions
|
@ -317,7 +317,7 @@ pub fn (mut a array) reverse_in_place() {
|
|||
|
||||
pub fn (mut a array) clear() {
|
||||
#a.val.arr.make_copy()
|
||||
#a.val.arr.arr.clear()
|
||||
#a.val.arr.arr.length = 0
|
||||
}
|
||||
|
||||
// reduce executes a given reducer function on each element of the array,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue