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:
parent
39899b07d9
commit
6e9493887d
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user