Skip to content

Commit 0848b3a

Browse files
committed
Updated for loop as range enumerator
1 parent d1ac9e1 commit 0848b3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ func main() {
1414
if err != nil {
1515
fmt.Println("Error: ", err)
1616
} else {
17-
for i := 0; i < len(status); i++ {
18-
fmt.Printf("%20s %s\n", status[i][0]+":", status[i][1])
17+
for _, row := range status {
18+
fmt.Printf("%20s %s\n", row[0]+":", row[1])
1919
}
2020
}
2121
}

0 commit comments

Comments
 (0)