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

cgen: minor fixes

This commit is contained in:
Alexander Medvednikov
2020-03-07 16:23:10 +01:00
parent 24bcc7a93b
commit 63032c4bb7
4 changed files with 31 additions and 13 deletions

View File

@@ -1208,7 +1208,7 @@ pub fn (s string) reverse() string {
str: malloc(s.len)
}
for i := s.len - 1; i >= 0; i-- {
res[s.len - i - 1] = s[i]
res.str[s.len - i - 1] = s[i]
}
return res
}