builtin/array.v: Fixed typo in new_array (cap -> cap_)
parent
39899b07d9
commit
6e9493887d
|
@ -20,7 +20,7 @@ fn new_array(mylen, cap, elm_size int) array {
|
||||||
cap_ := if cap == 0 { 1 } else { cap }
|
cap_ := if cap == 0 { 1 } else { cap }
|
||||||
arr := array{
|
arr := array{
|
||||||
len: mylen
|
len: mylen
|
||||||
cap: cap
|
cap: cap_
|
||||||
element_size: elm_size
|
element_size: elm_size
|
||||||
data: calloc(cap_ * elm_size)
|
data: calloc(cap_ * elm_size)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue