Skip to content

Commit 4ebbd1f

Browse files
committed
Docs: clarify behavior of range checks
The current wording (about the sets of values being "the same") is not accurate.
1 parent ac859d9 commit 4ebbd1f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/codeql/ql-language-reference/formulas.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,11 @@ A range check is a formula that looks like:
133133
134134
<expression> in <range>
135135
136-
You can use a range check formula to check whether a numeric expression is in a given
136+
It holds if there is at least one value in ``<expression>`` that is also in the given
137137
:ref:`range <ranges>`. For example, ``x in [2.1 .. 10.5]`` holds if the variable ``x`` is
138138
between the values ``2.1`` and ``10.5`` (including ``2.1`` and ``10.5`` themselves).
139139

140140
Note that ``<expression> in <range>`` is equivalent to ``<expression> = <range>``.
141-
Both formulas check whether the set of values denoted by ``<expression>`` is the same as the
142-
set of values denoted by ``<range>``.
143141

144142
.. _calls:
145143

0 commit comments

Comments
 (0)