1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

builtin: run vfmt over string.v

This commit is contained in:
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

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
}
}
}