Introduction
Introduction Statistics Contact Development Disclaimer Help
taoc4: add missing newline - aoc22 - advent of code 2022 solutions
git clone git://src.adamsgaard.dk/aoc22
Log
Files
Refs
README
---
commit 42cee6e53f254613a3c8cfab5f6358693a8e902b
parent 02e9cc5f5cf0456ab4a261952bc91906f392c448
Author: Anders Damsgaard <[email protected]>
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(-)
---
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++
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.