From 540339b42df51b16a47df6318e8b4294ce640fa3 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Fri, 13 Dec 2024 11:18:52 +0000 Subject: [PATCH] upd function name --- day-12/internal/two/solve.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/day-12/internal/two/solve.go b/day-12/internal/two/solve.go index 77d5b48..ec78c5a 100644 --- a/day-12/internal/two/solve.go +++ b/day-12/internal/two/solve.go @@ -64,7 +64,7 @@ func analyzeSides(kind rune, graph *graph, path path) int { corners++ } - corners += isInnerCorner(graph, current, ns) + corners += numInnerCorner(graph, current, ns) } log.Debugf("this path has %d corners", corners) @@ -98,7 +98,7 @@ func isCorner(graph *graph, current, p, q point) bool { return false } -func isInnerCorner(graph *graph, current point, ns [4]point) int { +func numInnerCorner(graph *graph, current point, ns [4]point) int { var corners int if !graph.isOutOfBounds(ns[N]) && !graph.isOutOfBounds(ns[E]) {