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

cleanup: replace C for loops with range

This commit is contained in:
spaceface777
2020-02-24 17:55:16 +01:00
committed by GitHub
parent 5918946feb
commit ef8c1203b4
50 changed files with 168 additions and 170 deletions

View File

@ -309,7 +309,7 @@ fn (n mut mapnode) merge(idx int) {
sibling := &mapnode(n.children[idx + 1])
child.keys[mid_index] = n.keys[idx]
child.values[mid_index] = n.values[idx]
for i := 0; i < sibling.size; i++ {
for i in 0..sibling.size {
child.keys[i + degree] = sibling.keys[i]
child.values[i + degree] = sibling.values[i]
}
@ -413,4 +413,4 @@ pub fn (m SortedMap) print() {
// }
// sb.writeln('}')
// return sb.str()
// }
// }