Add space before pipe in line operator example

This commit is contained in:
neuroevolutus 2023-03-12 01:38:45 -06:00
parent 218896d094
commit 5849d09545
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ b:
```
then
```bash
yq '.b | key| line' sample.yml
yq '.b | key | line' sample.yml
```
will output
```yaml

View File

@ -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",
},