aboutsummaryrefslogtreecommitdiff
path: root/2021/10/puzzle-2.sed
diff options
context:
space:
mode:
authorThomas Voss <thomasvoss@live.com> 2021-12-10 07:39:01 +0100
committerThomas Voss <thomasvoss@live.com> 2021-12-10 07:39:01 +0100
commit0d361b53679474ea9d38ea236fc620de5821b001 (patch)
treed60f7648d04b95198d203a2c0986aef81cc7f26b /2021/10/puzzle-2.sed
parentc95723952a479ed35347cbd196dc1986be932732 (diff)
Use 'a' and 'i'
Diffstat (limited to '2021/10/puzzle-2.sed')
-rw-r--r--2021/10/puzzle-2.sed4
1 files changed, 2 insertions, 2 deletions
diff --git a/2021/10/puzzle-2.sed b/2021/10/puzzle-2.sed
index 887386c..2265284 100644
--- a/2021/10/puzzle-2.sed
+++ b/2021/10/puzzle-2.sed
@@ -14,5 +14,5 @@ s/\([(\[{<]*\){$/s = s * 5 + 3;\1/
s/\([(\[{<]*\)<$/s = s * 5 + 4;\1/
t loop
-s/^/s = 0;/
-s/$/s/
+is = 0;
+as