From c80d5016f616deaf0c5ca980d974484815b35908 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Wed, 30 Sep 2026 20:29:24 +0200 Subject: [PATCH] Say heldCheck also rejects a held draw read two ways, and name its helper checkTemplateHold --- holdfence.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/holdfence.go b/holdfence.go index ad1ae91..a605187 100644 --- a/holdfence.go +++ b/holdfence.go @@ -6,22 +6,22 @@ import ( "strings" ) -// heldCheck rejects every route to a held sibling name except the ones that read its -// draw. An expansion holds one draw of that name; anything else that renders it draws -// again, and the two disagree. +// heldCheck rejects a format reading one held draw two ways, and every route to a held +// name except the readers of its draw. An expansion holds one draw of that name; +// anything else that renders it draws again, and the two disagree. // docs/decisions.md#the-expansion-hold-and-the-renders-draws-are-two-fences func heldCheck(path string, n node) error { t, ok := n.(*template) if !ok || len(t.compiled.held) == 0 { return nil } - if err := checkHeld(t); err != nil { + if err := checkTemplateHold(t); err != nil { return fmt.Errorf("%s: %w", t.site.label(path), err) } return nil } -func checkHeld(t *template) error { +func checkTemplateHold(t *template) error { if err := checkNoOverlap(t.compiled); err != nil { return err }