From 5849d09545436f4a13d31dd184efef512e8bb091 Mon Sep 17 00:00:00 2001 From: neuroevolutus <19356702+neuroevolutus@users.noreply.github.com> Date: Sun, 12 Mar 2023 01:38:45 -0600 Subject: [PATCH] Add space before pipe in `line` operator example --- pkg/yqlib/doc/operators/line.md | 2 +- pkg/yqlib/operator_line_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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", },