From 05ad1dad908a64de45a2e8727828615e5af559dd Mon Sep 17 00:00:00 2001 From: -pthread -Wall Date: Tue, 26 Sep 2023 06:18:18 +0200 Subject: [PATCH] Fix typos (#1798) --- .../{leading-seperator.sh => leading-separator.sh} | 2 +- ...alute_sequence_command.go => evaluate_sequence_command.go} | 0 examples/{leading-seperator.yaml => leading-separator.yaml} | 0 pkg/yqlib/candidate_node.go | 2 +- pkg/yqlib/doc/usage/csv-tsv.md | 2 +- pkg/yqlib/doc/usage/headers/csv-tsv.md | 2 +- project-words.txt | 4 ++-- release_notes.txt | 2 +- scripts/shunit2 | 2 +- 9 files changed, 8 insertions(+), 8 deletions(-) rename acceptance_tests/{leading-seperator.sh => leading-separator.sh} (99%) rename cmd/{evalute_sequence_command.go => evaluate_sequence_command.go} (100%) rename examples/{leading-seperator.yaml => leading-separator.yaml} (100%) diff --git a/acceptance_tests/leading-seperator.sh b/acceptance_tests/leading-separator.sh similarity index 99% rename from acceptance_tests/leading-seperator.sh rename to acceptance_tests/leading-separator.sh index 80b1a154a4..9e36085f3a 100755 --- a/acceptance_tests/leading-seperator.sh +++ b/acceptance_tests/leading-separator.sh @@ -167,7 +167,7 @@ testLeadingSeparatorExtractFieldMultiDocWithComments() { --- # there a: test -# whereever +# wherever --- # you are a: test2 diff --git a/cmd/evalute_sequence_command.go b/cmd/evaluate_sequence_command.go similarity index 100% rename from cmd/evalute_sequence_command.go rename to cmd/evaluate_sequence_command.go diff --git a/examples/leading-seperator.yaml b/examples/leading-separator.yaml similarity index 100% rename from examples/leading-seperator.yaml rename to examples/leading-separator.yaml diff --git a/pkg/yqlib/candidate_node.go b/pkg/yqlib/candidate_node.go index 61675c8a39..24a5d43fb2 100644 --- a/pkg/yqlib/candidate_node.go +++ b/pkg/yqlib/candidate_node.go @@ -111,7 +111,7 @@ func (n *CandidateNode) createChildPath(path interface{}) []interface{} { return newPath } - //don't use append as they may actually modify the path of the orignal node! + //don't use append as they may actually modify the path of the original node! newPath := make([]interface{}, len(n.Path)+1) copy(newPath, n.Path) newPath[len(n.Path)] = path diff --git a/pkg/yqlib/doc/usage/csv-tsv.md b/pkg/yqlib/doc/usage/csv-tsv.md index c58e42cde2..70331a2b40 100644 --- a/pkg/yqlib/doc/usage/csv-tsv.md +++ b/pkg/yqlib/doc/usage/csv-tsv.md @@ -2,7 +2,7 @@ Encode/Decode/Roundtrip CSV and TSV files. ## Encode -Currently supports arrays of homogenous flat objects, that is: no nesting and it assumes the _first_ object has all the keys required: +Currently supports arrays of homogeneous flat objects, that is: no nesting and it assumes the _first_ object has all the keys required: ```yaml - name: Bobo diff --git a/pkg/yqlib/doc/usage/headers/csv-tsv.md b/pkg/yqlib/doc/usage/headers/csv-tsv.md index 0a7c7cac47..228d3f5c4e 100644 --- a/pkg/yqlib/doc/usage/headers/csv-tsv.md +++ b/pkg/yqlib/doc/usage/headers/csv-tsv.md @@ -2,7 +2,7 @@ Encode/Decode/Roundtrip CSV and TSV files. ## Encode -Currently supports arrays of homogenous flat objects, that is: no nesting and it assumes the _first_ object has all the keys required: +Currently supports arrays of homogeneous flat objects, that is: no nesting and it assumes the _first_ object has all the keys required: ```yaml - name: Bobo diff --git a/project-words.txt b/project-words.txt index 218a49b7dd..00afd6500f 100644 --- a/project-words.txt +++ b/project-words.txt @@ -161,7 +161,7 @@ Oneshot opencollect opstack orderedmap -orignal +original osarch overridign pacman @@ -239,7 +239,7 @@ Warningf Wazowski webi Webi -whereever +wherever winget withdots wizz diff --git a/release_notes.txt b/release_notes.txt index 46a6e69289..ff0f939cf7 100644 --- a/release_notes.txt +++ b/release_notes.txt @@ -104,7 +104,7 @@ - Fixed sorting by date #1412 - Added check to ensure only maps can be encoded to XML #1408 - Check merge alias is a map #1425 - - Explicity setting unwrap flag works for json output #437, #1409 + - Explicitly setting unwrap flag works for json output #437, #1409 - Bumped go version diff --git a/scripts/shunit2 b/scripts/shunit2 index 6239683af1..f15ec1f188 100755 --- a/scripts/shunit2 +++ b/scripts/shunit2 @@ -1306,7 +1306,7 @@ if command [ "$#" -ge 2 ]; then # Argument $1 is either the filename of tests or '--'; either way, skip it. shift # Remaining arguments ($2 .. $#) are assumed to be test function names. - # Interate through all remaining args in "$@" in a POSIX (likely portable) way. + # Iterate through all remaining args in "$@" in a POSIX (likely portable) way. # Helpful tip: https://unix.stackexchange.com/questions/314032/how-to-use-arguments-like-1-2-in-a-for-loop for _shunit_arg_ do suite_addTest "${_shunit_arg_}"