Skip to content

Commit 4e7e70f

Browse files
Docs: Add missing language[monotonicAggregates] annotation
This adds the `language[monotonicAggregates]` annotation so that the example compiles.
1 parent d53d275 commit 4e7e70f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ the distance of a node in a graph from the leaves as follows:
602602

603603
.. code-block:: ql
604604
605+
language[monotonicAggregates]
605606
int depth(Node n) {
606607
if not exists(n.getAChild())
607608
then result = 0

0 commit comments

Comments
 (0)