From acb4aeee55205fc3caeb2ec661885a4ef57cf19c Mon Sep 17 00:00:00 2001 From: Steve Yegge Date: Thu, 25 Dec 2025 11:51:03 -0800 Subject: [PATCH] Fix misleading comment in replaceStep --- internal/formula/expand.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/formula/expand.go b/internal/formula/expand.go index 5ddfd459..a85c6749 100644 --- a/internal/formula/expand.go +++ b/internal/formula/expand.go @@ -242,7 +242,7 @@ func buildStepMap(steps []*Step) map[string]*Step { } // replaceStep replaces a step with the given ID with a slice of new steps. -// This is done at the top level only; children are not searched. +// Searches recursively through children to find and replace the target. func replaceStep(steps []*Step, targetID string, replacement []*Step) []*Step { result := make([]*Step, 0, len(steps)+len(replacement)-1)