mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
examples: update [0;n]
to [0].repeat(n)
This commit is contained in:

committed by
Alexander Medvednikov

parent
854de4e7e0
commit
5f43a61e0d
@ -52,7 +52,7 @@ fn main() {
|
||||
for {
|
||||
mut new_field := []array_int
|
||||
for i, line in field {
|
||||
new_field << [0; line.len]
|
||||
new_field << [0].repeat(line.len)
|
||||
}
|
||||
for i, line in field {
|
||||
if i == 0 || i == field.len - 1{continue}
|
||||
|
Reference in New Issue
Block a user