diff --git a/pkg/yqlib/doc/operators/path.md b/pkg/yqlib/doc/operators/path.md index 3356e867..0d9b73e6 100644 --- a/pkg/yqlib/doc/operators/path.md +++ b/pkg/yqlib/doc/operators/path.md @@ -123,7 +123,7 @@ a: ``` ## Set path to prune deep paths -Like pick but recursive. This uses `ireduce` to deeply set the selected paths into an empty object, +Like pick but recursive. This uses `ireduce` to deeply set the selected paths into an empty object. Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/operator_path_test.go b/pkg/yqlib/operator_path_test.go index 084ba9d4..225d9ac4 100644 --- a/pkg/yqlib/operator_path_test.go +++ b/pkg/yqlib/operator_path_test.go @@ -90,7 +90,7 @@ var pathOperatorScenarios = []expressionScenario{ }, { description: "Set path to prune deep paths", - subdescription: "Like pick but recursive. This uses `ireduce` to deeply set the selected paths into an empty object,", + subdescription: "Like pick but recursive. This uses `ireduce` to deeply set the selected paths into an empty object.", document: documentToPrune, expression: "(.parentB.child2, .parentC.child1) as $i\n ireduce({}; setpath($i | path; $i))", expected: []string{