vfmt: small cleanup

pull/6846/head
Delyan Angelov 2020-11-11 21:43:47 +02:00
parent 8197463b08
commit e6cc967ac8
1 changed files with 3 additions and 3 deletions

View File

@ -1276,9 +1276,9 @@ pub fn (mut f Fmt) short_module(name string) string {
x := name.trim_suffix('>').split('<') x := name.trim_suffix('>').split('<')
if x.len == 2 { if x.len == 2 {
main := f.short_module(x[0]) main := f.short_module(x[0])
genlist := x[1].split(',').map(f.short_module(it)).join(',') genlist := x[1].split(',')
res := '$main<${genlist}>' genshorts := genlist.map(f.short_module(it)).join(',')
return res return '$main<$genshorts>'
} }
} }
vals := name.split('.') vals := name.split('.')