ast: improve V style

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
pull/13952/head
Vincenzo Palazzo 2022-04-08 15:23:43 +02:00
parent 009e5b6135
commit 1d7624edfd
No known key found for this signature in database
GPG Key ID: 8B6DC2B870B80D5F
1 changed files with 1 additions and 1 deletions

View File

@ -1160,7 +1160,7 @@ fn (t Table) shorten_user_defined_typenames(originalname string, import_aliases
// there is a []modul.name
if res.contains('[]') {
idx := res.index('.') or { -1 }
return res.substr(idx + 1, res.len)
return res[idx + 1..]
}
// types defined by the user
// mod.submod.submod2.Type => submod2.Type