Skip to content

Commit 3aa43a9

Browse files
committed
simplify range expression
1 parent a5b49c2 commit 3aa43a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func clearConsole() {
3838

3939
func printColoredArray(array []int, idx1, idx2 int) {
4040
fmt.Print("[")
41-
for i, _ := range array {
41+
for i := range array {
4242
if idx1 == i {
4343
fmt.Print(color.OpUnderscore.Sprint(color.LightYellow.Sprint(array[idx1]), " "))
4444
} else if idx2 == i {

0 commit comments

Comments
 (0)