Skip to content

Conversation

@nickrolfe
Copy link
Contributor

Fixes #21068

The current wording (about the sets of values being "the same") is not accurate.

The current wording (about the sets of values being "the same") is not
accurate.
@nickrolfe nickrolfe marked this pull request as ready for review January 5, 2026 18:14
@nickrolfe nickrolfe requested a review from a team as a code owner January 5, 2026 18:14
Copilot AI review requested due to automatic review settings January 5, 2026 18:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR corrects inaccurate documentation about CodeQL range checks by clarifying that they check for "at least one value" in common rather than "the same set of values." The fix addresses issue #21068 where the previous wording incorrectly implied set equality semantics.

  • Rewrites the description of range check behavior to accurately reflect CodeQL's "at least one common value" semantics
  • Removes the misleading explanation that claimed <expression> in <range> checks if sets are "the same"
  • Retains the note about equivalence between in and = operators, which is consistent with CodeQL's equality semantics documented elsewhere

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@d10c d10c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me.

@nickrolfe nickrolfe merged commit 5faa546 into main Jan 5, 2026
14 checks passed
@nickrolfe nickrolfe deleted the nickrolfe/doc-range-checks branch January 5, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documentation of Range Check seems wrong?

3 participants