public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/devmanual:master commit in: function-reference/query-functions/
Date: Thu,  5 Nov 2020 10:15:21 +0000 (UTC)	[thread overview]
Message-ID: <1603727008.11e783db48d1095bb33ac54b04cbc0d7518a3f37.ulm@gentoo> (raw)

commit:     11e783db48d1095bb33ac54b04cbc0d7518a3f37
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 26 15:43:28 2020 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Oct 26 15:43:28 2020 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=11e783db

function-reference/query-functions: Correct description of "has".

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 function-reference/query-functions/text.xml | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/function-reference/query-functions/text.xml b/function-reference/query-functions/text.xml
index 8511c93..da24380 100644
--- a/function-reference/query-functions/text.xml
+++ b/function-reference/query-functions/text.xml
@@ -65,19 +65,17 @@ query variables and similar state.
   </tr>
   <tr>
     <ti>
-      <c>has flag string</c>
+      <c>has word item...</c>
     </ti>
     <ti>
-      Returns true if <c>flag</c> is included in the flag list <c>string</c>
-      (example: <c>if has ccache $FEATURES ; then</c>).
-      The condition is inverted if prefixed with an exclamation mark,
-      <c>!flag</c>.
+      Returns true if <c>word</c> is found in the list of subsequent
+      <c>item</c> arguments (example: <c>if has ccache $FEATURES ; then</c>).
       It is guaranteed that <c>has</c> produces no output.
     </ti>
   </tr>
   <tr>
     <ti>
-      <c>hasq flag string</c>
+      <c>hasq word item...</c>
     </ti>
     <ti>
       Deprecated synonym for <c>has</c>.
@@ -85,10 +83,10 @@ query variables and similar state.
   </tr>
   <tr>
     <ti>
-      <c>hasv flag string</c>
+      <c>hasv word item...</c>
     </ti>
     <ti>
-      As <c>has</c>, echoes <c>flag</c> on success.
+      As <c>has</c>, echoes <c>word</c> on success.
     </ti>
   </tr>
   <tr>


             reply	other threads:[~2020-11-05 10:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-05 10:15 Ulrich Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-10-05 18:58 [gentoo-commits] proj/devmanual:master commit in: function-reference/query-functions/ Ulrich Müller
2021-06-13 11:48 Ulrich Müller
2018-10-24 13:01 Brian Evans
2016-11-30  5:58 Göktürk Yüksek
2016-11-30  5:58 Göktürk Yüksek
2015-02-15  9:54 Markos Chandras
2015-02-15  9:54 Markos Chandras

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1603727008.11e783db48d1095bb33ac54b04cbc0d7518a3f37.ulm@gentoo \
    --to=ulm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox