Fix misleading comment in replaceStep
This commit is contained in:
@@ -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.
|
// 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 {
|
func replaceStep(steps []*Step, targetID string, replacement []*Step) []*Step {
|
||||||
result := make([]*Step, 0, len(steps)+len(replacement)-1)
|
result := make([]*Step, 0, len(steps)+len(replacement)-1)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user