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

cgen: uniform string output format

This commit is contained in:
yuyi
2020-04-27 20:48:28 +08:00
committed by GitHub
parent eb8973c362
commit e9f764db4f
11 changed files with 29 additions and 29 deletions

View File

@ -317,9 +317,9 @@ pub fn (a []string) str() string {
sb.write('[')
for i in 0..a.len {
val := a[i]
sb.write('"')
sb.write("\'")
sb.write(val)
sb.write('"')
sb.write("\'")
if i < a.len - 1 {
sb.write(', ')
}