From 8e831d85fe049e5e603cbd73dbfc04d160b87b63 Mon Sep 17 00:00:00 2001 From: Kharec Date: Mon, 1 Dec 2025 23:09:30 +0100 Subject: [PATCH] fix: replace Split with SplitSeq as it's a loop (thanks lsp) --- internal/2015/DaySeven/code.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/2015/DaySeven/code.go b/internal/2015/DaySeven/code.go index af7fca4..29431cd 100644 --- a/internal/2015/DaySeven/code.go +++ b/internal/2015/DaySeven/code.go @@ -15,7 +15,7 @@ func init() { func ParseInput(filepath string) map[string]string { content, _ := os.ReadFile(filepath) instructions := make(map[string]string) - for _, line := range strings.Split(string(content), "\n") { + for line := range strings.SplitSeq(string(content), "\n") { if parts := strings.Split(line, " -> "); len(parts) == 2 { instructions[parts[1]] = parts[0] }