We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7faea53 commit 6fe0de8Copy full SHA for 6fe0de8
docs/codeql/ql-language-reference/modules.rst
@@ -300,8 +300,14 @@ module to generate a custom equivalence relation on an :ref:`algebraic datatype
300
301
.. code-block:: ql
302
303
- newtype Node = MkNode(int x) { x in [1..6] }
304
- predicate base(Node x, Node y) {(x = MkNode(1) and y = MkNode(2)) or (x = MkNode(3) and y = MkNode(4)) }
+ newtype Node = MkNode(int x) { x in [1 .. 6] }
+
305
+ predicate base(Node x, Node y) {
306
+ x = MkNode(1) and y = MkNode(2)
307
+ or
308
+ x = MkNode(3) and y = MkNode(4)
309
+ }
310
311
module Equiv = QlBuiltins::EquivalenceRelation<Node, base/2>;
312
313
from int x, int y
0 commit comments