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

make private struct warning an error

This commit is contained in:
Alexander Medvednikov
2020-01-12 19:59:57 +01:00
parent e159347c10
commit 4c7df98ac9
6 changed files with 6 additions and 6 deletions

View File

@@ -869,7 +869,7 @@ pub fn (s string) ustring() ustring {
s: s
// runes will have at least s.len elements, save reallocations
// TODO use VLA for small strings?
runes: new_array(0, s.len, sizeof(int))
}
for i := 0; i < s.len; i++ {