From ca090fd144fa2b15b2941be98ee146c67b2862a4 Mon Sep 17 00:00:00 2001 From: Ivan Menshykov Date: Sun, 30 Oct 2016 21:45:11 +0100 Subject: [PATCH] Shadowing variable (#40) --- ui.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui.go b/ui.go index 374a1a4..ae5280c 100644 --- a/ui.go +++ b/ui.go @@ -127,12 +127,12 @@ func (win *Win) print(x, y int, fg, bg termbox.Attribute, s string) { bg = termbox.ColorDefault break } - i, err := strconv.Atoi(t) + n, err := strconv.Atoi(t) if err != nil { log.Printf("converting escape code: %s", err) continue } - nums = append(nums, i) + nums = append(nums, n) } for _, n := range nums {