From 1d90c1cbbf8263f823d639941f14c8724c15f3db Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 21 Feb 2020 18:15:41 +0100 Subject: [PATCH] nice --- vlib/v/fmt/fmt.v | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vlib/v/fmt/fmt.v b/vlib/v/fmt/fmt.v index 78d6070447..afa479944f 100644 --- a/vlib/v/fmt/fmt.v +++ b/vlib/v/fmt/fmt.v @@ -195,10 +195,9 @@ fn (f mut Fmt) struct_decl(node ast.StructDecl) { } } for field in node.fields { - field_type_sym := f.table.get_type_symbol(field.typ) f.write('\t$field.name ') f.write(strings.repeat(` `, max - field.name.len)) - f.writeln('$field_type_sym.name') + f.writeln(f.table.type_to_str(field.typ)) } f.writeln('}\n') }