1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

builtin/array.v: Fixed typo in new_array (cap -> cap_)

This commit is contained in:
Steve Phillips 2019-12-20 12:09:59 -08:00 committed by Alexander Medvednikov
parent 39899b07d9
commit 6e9493887d

View File

@ -20,7 +20,7 @@ fn new_array(mylen, cap, elm_size int) array {
cap_ := if cap == 0 { 1 } else { cap }
arr := array{
len: mylen
cap: cap
cap: cap_
element_size: elm_size
data: calloc(cap_ * elm_size)
}