From 5e75db824b58b8c5a78c81cc26e270505ddb906c Mon Sep 17 00:00:00 2001 From: stevenwdv Date: Thu, 17 Jul 2025 11:43:28 +0200 Subject: [PATCH] UK spelling --- pkg/yqlib/doc/operators/anchor-and-alias-operators.md | 2 +- pkg/yqlib/doc/operators/traverse-read.md | 6 +++--- pkg/yqlib/operator_anchors_aliases_test.go | 2 +- pkg/yqlib/operator_traverse_path_test.go | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pkg/yqlib/doc/operators/anchor-and-alias-operators.md b/pkg/yqlib/doc/operators/anchor-and-alias-operators.md index e1f05b52..d4a8954c 100644 --- a/pkg/yqlib/doc/operators/anchor-and-alias-operators.md +++ b/pkg/yqlib/doc/operators/anchor-and-alias-operators.md @@ -97,7 +97,7 @@ x: 1 ``` ## Override with local key -like https://yaml.org/type/merge.html, but with x: 1 before the merge key. This is legacy behavior, see --yaml-fix-merge-anchor-to-spec +like https://yaml.org/type/merge.html, but with x: 1 before the merge key. This is legacy behaviour, see --yaml-fix-merge-anchor-to-spec Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/traverse-read.md b/pkg/yqlib/doc/operators/traverse-read.md index 3957f4c4..775eeae0 100644 --- a/pkg/yqlib/doc/operators/traverse-read.md +++ b/pkg/yqlib/doc/operators/traverse-read.md @@ -304,7 +304,7 @@ foo_a ``` ## Traversing merge anchors with override -This is legacy behavior, see --yaml-fix-merge-anchor-to-spec +This is legacy behaviour, see --yaml-fix-merge-anchor-to-spec Given a sample.yml file of: ```yaml @@ -401,7 +401,7 @@ foobar_thing ``` ## Traversing merge anchor lists -Note that the later merge anchors override previous, but this is legacy behavior, see --yaml-fix-merge-anchor-to-spec +Note that the later merge anchors override previous, but this is legacy behaviour, see --yaml-fix-merge-anchor-to-spec Given a sample.yml file of: ```yaml @@ -434,7 +434,7 @@ bar_thing ``` ## Splatting merge anchor lists -With legacy override behavior, see --yaml-fix-merge-anchor-to-spec +With legacy override behaviour, see --yaml-fix-merge-anchor-to-spec Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/operator_anchors_aliases_test.go b/pkg/yqlib/operator_anchors_aliases_test.go index 988af027..39bcc0c8 100644 --- a/pkg/yqlib/operator_anchors_aliases_test.go +++ b/pkg/yqlib/operator_anchors_aliases_test.go @@ -154,7 +154,7 @@ var anchorOperatorScenarios = []expressionScenario{ { description: "Override with local key", subdescription: "like https://yaml.org/type/merge.html, but with x: 1 before the merge key. " + - "This is legacy behavior, see --yaml-fix-merge-anchor-to-spec", + "This is legacy behaviour, see --yaml-fix-merge-anchor-to-spec", document: specDocument + "- x: 1\n << : [ *BIG, *LEFT, *SMALL ]\n", expression: ".[4] | explode(.)", expected: []string{"D0, P[4], (!!map)::x: 0\nr: 10\ny: 2\n"}, diff --git a/pkg/yqlib/operator_traverse_path_test.go b/pkg/yqlib/operator_traverse_path_test.go index 65ec97f9..73028dc0 100644 --- a/pkg/yqlib/operator_traverse_path_test.go +++ b/pkg/yqlib/operator_traverse_path_test.go @@ -433,7 +433,7 @@ var traversePathOperatorScenarios = []expressionScenario{ }, { description: "Traversing merge anchors with override", - subdescription: "This is legacy behavior, see --yaml-fix-merge-anchor-to-spec", + subdescription: "This is legacy behaviour, see --yaml-fix-merge-anchor-to-spec", document: mergeDocSample, expression: `.foobar.c`, expected: []string{ @@ -477,7 +477,7 @@ var traversePathOperatorScenarios = []expressionScenario{ { description: "Traversing merge anchor lists", subdescription: "Note that the later merge anchors override previous, " + - "but this is legacy behavior, see --yaml-fix-merge-anchor-to-spec", + "but this is legacy behaviour, see --yaml-fix-merge-anchor-to-spec", document: mergeDocSample, expression: `.foobarList.thing`, expected: []string{ @@ -502,7 +502,7 @@ var traversePathOperatorScenarios = []expressionScenario{ }, { description: "Splatting merge anchor lists", - subdescription: "With legacy override behavior, see --yaml-fix-merge-anchor-to-spec", + subdescription: "With legacy override behaviour, see --yaml-fix-merge-anchor-to-spec", document: mergeDocSample, expression: `.foobarList[]`, expected: []string{