diff --git a/pkg/yqlib/doc/operators/line.md b/pkg/yqlib/doc/operators/line.md index 9fc4cd0c..867c6112 100644 --- a/pkg/yqlib/doc/operators/line.md +++ b/pkg/yqlib/doc/operators/line.md @@ -29,7 +29,7 @@ b: ``` then ```bash -yq '.b | key| line' sample.yml +yq '.b | key | line' sample.yml ``` will output ```yaml diff --git a/pkg/yqlib/operator_line_test.go b/pkg/yqlib/operator_line_test.go index e3765249..34c3ce55 100644 --- a/pkg/yqlib/operator_line_test.go +++ b/pkg/yqlib/operator_line_test.go @@ -17,7 +17,7 @@ var lineOperatorScenarios = []expressionScenario{ description: "Returns line of _key_ node", subdescription: "Pipe through the key operator to get the line of the key", document: "a: cat\nb:\n c: cat", - expression: `.b | key| line`, + expression: `.b | key | line`, expected: []string{ "D0, P[b], (!!int)::2\n", },