builtin: run vfmt over string.v

pull/9708/head
Delyan Angelov 2021-04-13 12:01:23 +03:00
parent 1ef718c1e1
commit f04dd21e79
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 3 additions and 3 deletions

View File

@ -1647,13 +1647,13 @@ pub fn (a []string) join(del string) string {
for i, val in a {
unsafe {
C.memcpy(res.str + idx, val.str, val.len)
idx+=val.len
idx += val.len
}
// Add del if it's not last
if i != a.len-1 {
if i != a.len - 1 {
unsafe {
C.memcpy(res.str + idx, del.str, del.len)
idx+=del.len
idx += del.len
}
}
}