diff --git a/vlib/v/fmt/fmt.v b/vlib/v/fmt/fmt.v index 472bd90ea6..7c7a2d9ed0 100644 --- a/vlib/v/fmt/fmt.v +++ b/vlib/v/fmt/fmt.v @@ -1276,9 +1276,9 @@ pub fn (mut f Fmt) short_module(name string) string { x := name.trim_suffix('>').split('<') if x.len == 2 { main := f.short_module(x[0]) - genlist := x[1].split(',').map(f.short_module(it)).join(',') - res := '$main<${genlist}>' - return res + genlist := x[1].split(',') + genshorts := genlist.map(f.short_module(it)).join(',') + return '$main<$genshorts>' } } vals := name.split('.')