From 6e9493887dd6afc0d351f14c30ee40a194d251d3 Mon Sep 17 00:00:00 2001 From: Steve Phillips Date: Fri, 20 Dec 2019 12:09:59 -0800 Subject: [PATCH] builtin/array.v: Fixed typo in new_array (cap -> cap_) --- vlib/builtin/array.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/builtin/array.v b/vlib/builtin/array.v index 474cedcb2a..03fbdb4a6d 100644 --- a/vlib/builtin/array.v +++ b/vlib/builtin/array.v @@ -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) }