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

parser: a small immutable field fix

This commit is contained in:
Alexander Medvednikov
2019-10-13 01:50:15 +03:00
parent 343dced36d
commit ae2af4c36d
3 changed files with 14 additions and 6 deletions

View File

@ -9,7 +9,7 @@ const (
fn init_os_args(argc int, argv &byteptr) []string {
mut args := []string
for i := 0; i < argc; i++ {
for i in 0 .. argc {
args << string(argv[i])
}
return args