mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vfmt: small cleanup
This commit is contained in:
@@ -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('.')
|
||||||
|
|||||||
Reference in New Issue
Block a user