1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

count should be length

Example refers to a count function, which does not exist. Replacing it with length works.
This commit is contained in:
Peter van Dijk
2013-11-07 16:39:44 +01:00
parent 78976b3504
commit bdbfa7e32c

View File

@@ -946,7 +946,7 @@ sections:
means that you'll sometimes have to be more explicit about
the condition you want: you can't test whether, e.g. a
string is empty using `if .name then A else B end`, you'll
need something more like `if (.name | count) > 0 then A else
need something more like `if (.name | length) > 0 then A else
B end` instead.
If the condition A produces multiple results, it is