From 4ca0f6a7a14f92203ff5c0435dc21d8b499a1d31 Mon Sep 17 00:00:00 2001 From: neuroevolutus <19356702+neuroevolutus@users.noreply.github.com> Date: Sat, 11 Mar 2023 20:34:47 -0600 Subject: [PATCH] Change "array" to "expression" --- pkg/yqlib/doc/operators/contains.md | 2 +- pkg/yqlib/doc/operators/headers/contains.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/yqlib/doc/operators/contains.md b/pkg/yqlib/doc/operators/contains.md index dfdd5a04..157b50d6 100644 --- a/pkg/yqlib/doc/operators/contains.md +++ b/pkg/yqlib/doc/operators/contains.md @@ -4,7 +4,7 @@ This returns `true` if the context contains the passed in parameter, and false o {% hint style="warning" %} -_Note_ that, just like jq, when checking if an array of strings `contains` another, this will use `contains` and _not_ equals to check each string. This means an array like `contains(["cat"])` will return true for an array `["cats"]`. +_Note_ that, just like jq, when checking if an array of strings `contains` another, this will use `contains` and _not_ equals to check each string. This means an expression like `contains(["cat"])` will return true for an array `["cats"]`. See the "Array has a subset array" example below on how to check for a subset. diff --git a/pkg/yqlib/doc/operators/headers/contains.md b/pkg/yqlib/doc/operators/headers/contains.md index fad851e6..d987261d 100644 --- a/pkg/yqlib/doc/operators/headers/contains.md +++ b/pkg/yqlib/doc/operators/headers/contains.md @@ -4,7 +4,7 @@ This returns `true` if the context contains the passed in parameter, and false o {% hint style="warning" %} -_Note_ that, just like jq, when checking if an array of strings `contains` another, this will use `contains` and _not_ equals to check each string. This means an array like `contains(["cat"])` will return true for an array `["cats"]`. +_Note_ that, just like jq, when checking if an array of strings `contains` another, this will use `contains` and _not_ equals to check each string. This means an expression like `contains(["cat"])` will return true for an array `["cats"]`. See the "Array has a subset array" example below on how to check for a subset.