Shadowing variable (#40)

This commit is contained in:
Ivan Menshykov authored and gokcehan committed 2016-10-30 23:45:11 +03:00
1 parent 2f574962bc
commit ca090fd144
1 file changed
+2 -2
+2 -2
View File
@@ -127,12 +127,12 @@ func (win *Win) print(x, y int, fg, bg termbox.Attribute, s string) {
bg = termbox.ColorDefault bg = termbox.ColorDefault
break break
} }
i, err := strconv.Atoi(t) n, err := strconv.Atoi(t)
if err != nil { if err != nil {
log.Printf("converting escape code: %s", err) log.Printf("converting escape code: %s", err)
continue continue
} }
nums = append(nums, i) nums = append(nums, n)
} }
for _, n := range nums { for _, n := range nums {