Skip to content

Commit 405b2c8

Browse files
committed
Clarify how to think about rank aggregate
- Mention that `rank[1](...)` is the same as `min(...)` - Make this (+ note about 1-based indexing) more visible
1 parent e3a6daa commit 405b2c8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,10 @@ The following aggregates are available in QL:
308308
309309
rank[4](int i | i = [5 .. 15] | i)
310310
311-
Note that the rank indices start at ``1``, so ``rank[0](...)`` returns no results.
311+
.. pull-quote:: Note
312+
313+
- Rank indices start at ``1``, so ``rank[0](...)`` returns no results.
314+
- ``rank[1](...)`` is the same as ``min(...)``.
312315

313316
.. index:: strictconcat, strictcount, strictsum
314317

0 commit comments

Comments
 (0)