From 999fe846e5546edbce845a0cd2a297eee47f7603 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Mon, 14 Dec 2020 10:31:24 +0000 Subject: [PATCH] vtest-cleancode: add builtin/map.v to fmt list (#7285) --- cmd/tools/vtest-cleancode.v | 1 + vlib/builtin/map.v | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/tools/vtest-cleancode.v b/cmd/tools/vtest-cleancode.v index 94a8d3a8e4..41be40aa34 100644 --- a/cmd/tools/vtest-cleancode.v +++ b/cmd/tools/vtest-cleancode.v @@ -21,6 +21,7 @@ const ( 'cmd/tools/vdoc.v' 'cmd/v/v.v', 'vlib/builtin/array.v', + 'vlib/builtin/map.v', 'vlib/os/file.v', 'vlib/math/bits/bits.v', 'vlib/time/time.v', diff --git a/vlib/builtin/map.v b/vlib/builtin/map.v index 37a7abf5a7..54e3114dad 100644 --- a/vlib/builtin/map.v +++ b/vlib/builtin/map.v @@ -119,7 +119,7 @@ fn new_dense_array(key_bytes int, value_bytes int) DenseArray { len: 0 deletes: 0 all_deleted: 0 - data: malloc(cap * slot_bytes) + data: malloc(cap * slot_bytes) } }