From 00b67942fed9961bd8d46d6f4fdae97dd074bb4e Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 2 Dec 2021 10:02:05 +0100 Subject: Run through gofmt --- 2015/20/puzzles.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2015/20/puzzles.go b/2015/20/puzzles.go index e734f2e..591bca4 100644 --- a/2015/20/puzzles.go +++ b/2015/20/puzzles.go @@ -17,7 +17,7 @@ func calc(n int) int { } for i := 1; i < int(s); i++ { - if n % i == 0 { + if n%i == 0 { /* START PART 2 */ ndi := n / i if ndi <= 50 { @@ -26,7 +26,7 @@ func calc(n int) int { acc += ndi } /* END PART 2 START PART 1 */ - acc += i + n / i + acc += i + n/i /* END PART 1 */ } } -- cgit v1.2.3