taoc4: add missing newline - aoc22 - advent of code 2022 solutions
(HTM) git clone git://src.adamsgaard.dk/aoc22
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 42cee6e53f254613a3c8cfab5f6358693a8e902b
(DIR) parent 02e9cc5f5cf0456ab4a261952bc91906f392c448
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Sun, 4 Dec 2022 08:57:20 +0000
aoc4: add missing newline
Diffstat:
M 4/aoc4 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/4/aoc4 b/4/aoc4
t@@ -2,7 +2,7 @@
BEGIN{ FS="," }
{
if (split($1, a, "-") != 2 || split($2, b, "-") != 2)
- printf("split error: %s", $0)
+ printf("split error: %s\n", $0)
if ((a[1] >= b[1] && a[2] <= b[2]) ||
(a[1] <= b[1] && a[2] >= b[2]))
sum++