From ee0baf62ad802c5fd14f2dd3ebaca76d23d1efe3 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 13 Oct 2020 18:11:28 +0300 Subject: [PATCH] vdoc: fix for `v doc log` --- vlib/v/table/atypes.v | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vlib/v/table/atypes.v b/vlib/v/table/atypes.v index 77b59a6a62..6433863995 100644 --- a/vlib/v/table/atypes.v +++ b/vlib/v/table/atypes.v @@ -806,6 +806,9 @@ pub fn (table &Table) type_to_str(t Type) string { res = sym.kind.str() } .array { + if t == array_type { + return 'array' + } info := sym.info as Array elem_str := table.type_to_str(info.elem_type) res = '[]$elem_str' @@ -833,6 +836,9 @@ pub fn (table &Table) type_to_str(t Type) string { // do nothing, source_name is sufficient } .map { + if int(t) == map_type_idx { + return 'map' + } info := sym.info as Map key_str := table.type_to_str(info.key_type) val_str := table.type_to_str(info.value_type)