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

cgen: args fixes

This commit is contained in:
Alexander Medvednikov
2020-03-11 21:11:27 +01:00
parent aada19f574
commit e0c85f87ae
9 changed files with 42 additions and 28 deletions

View File

@ -396,7 +396,7 @@ fn (s string) add(a string) string {
for j in 0..a.len {
res[s.len + j] = a[j]
}
res[new_len] = `\0` // V strings are not null terminated, but just in case
res.str[new_len] = `\0` // V strings are not null terminated, but just in case
return res
}