Fix misleading comment in replaceStep

This commit is contained in:
Steve Yegge
2025-12-25 11:51:03 -08:00
parent b82d0e7c0f
commit acb4aeee55

View File

@@ -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)