mirror of
https://github.com/vlang/v.git
synced 2025-09-16 07:52:32 +03:00
cleanup: replace C for loops with range
This commit is contained in:
parent
5918946feb
commit
ef8c1203b4
50 changed files with 168 additions and 170 deletions
|
@ -109,7 +109,7 @@ pub fn (a array) free() {
|
|||
pub fn (a []string) str() string {
|
||||
mut sb := strings.new_builder(a.len * 3)
|
||||
sb.write('[')
|
||||
for i := 0; i < a.len; i++ {
|
||||
for i in 0..a.len {
|
||||
val := a[i]
|
||||
sb.write('"')
|
||||
sb.write(val)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue