diff --git a/pkg/yqlib/doc/operators/comment-operators.md b/pkg/yqlib/doc/operators/comment-operators.md index e0bb5557..5560b1e9 100644 --- a/pkg/yqlib/doc/operators/comment-operators.md +++ b/pkg/yqlib/doc/operators/comment-operators.md @@ -108,7 +108,7 @@ will output fc: "" ``` -## Retreive comment - map key example +## Retrieve comment - map key example From the previous example, we know that the comment is on the 'hello' _key_ as a lineComment Given a sample.yml file of: @@ -163,7 +163,7 @@ will output fc: "" ``` -## Retreive comment - array example +## Retrieve comment - array example From the previous example, we know that the comment is on the first child as a headComment Given a sample.yml file of: diff --git a/pkg/yqlib/operator_comments_test.go b/pkg/yqlib/operator_comments_test.go index 0f4c44ae..e117e181 100644 --- a/pkg/yqlib/operator_comments_test.go +++ b/pkg/yqlib/operator_comments_test.go @@ -115,7 +115,7 @@ var commentOperatorScenarios = []expressionScenario{ }, }, { - description: "Retreive comment - map key example", + description: "Retrieve comment - map key example", subdescription: "From the previous example, we know that the comment is on the 'hello' _key_ as a lineComment", document: "hello: # hello-world-comment\n message: world", expression: `.hello | key | line_comment`, @@ -133,7 +133,7 @@ var commentOperatorScenarios = []expressionScenario{ }, }, { - description: "Retreive comment - array example", + description: "Retrieve comment - array example", subdescription: "From the previous example, we know that the comment is on the first child as a headComment", document: "name:\n # under-name-comment\n - first-array-child", expression: `.name[0] | headComment`,