Skip to content

Commit 5faa546

Browse files
authored
Merge pull request #21096 from github/nickrolfe/doc-range-checks
Docs: clarify behavior of range checks
2 parents ac859d9 + 4ebbd1f commit 5faa546

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)