From 9bccec439e1205e79fcc9f684f6f35103910623e Mon Sep 17 00:00:00 2001 From: David Ashby Date: Sat, 4 Dec 2021 09:21:15 -0500 Subject: [PATCH] correct comment --- 03/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/03/main.go b/03/main.go index 34d84eb..f72299c 100644 --- a/03/main.go +++ b/03/main.go @@ -39,7 +39,7 @@ func partOne() { lines++ n, _ := strconv.ParseInt(line, 2, 64) for i := 0; i < len(line); i++ { - // check if the number in the i'th column is 1, then bit-shift back to the 1s place to add it if it is + // add the number (1 or 0) in the i'th place to r[i] r[i] += (n & (1 << i)) >> i } }