Find a format's bound readers in one ordered scan

This commit is contained in:
M
2026-08-30 22:27:56 +02:00
committed by lilleman-tw
parent c1222eaf72
commit 5a69b02ee0
5 changed files with 76 additions and 28 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ func compileTemplate(m map[string]any) (node, error) {
return nil, err
}
t.ops, t.grow, t.bound = compileOps(format)
if err := checkNoOverlap(t.ops, t.bound, format); err != nil {
if err := checkNoOverlap(format, t.bound); err != nil {
return nil, err
}
return t, nil