Skip to content

Commit 79ae562

Browse files
authored
Update coalesce operation example to avoid path factoring (#8840)
The example code given does not work with the future-supported simple factoring; added a for loop so that this example is compatible with future versions of Gel.
1 parent 4775906 commit 79ae562

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/reference/stdlib/set.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,8 @@ Sets
339339
340340
# Get a set of tuples (<issue name>, <priority>)
341341
# for all issues.
342-
select (Issue.name, Issue.priority.name ?? 'n/a');
342+
for issue in Issue
343+
select (issue.name, issue.priority.name ?? 'n/a');
343344
344345
Without the coalescing operator, the above query will skip any
345346
``Issue`` without priority.

0 commit comments

Comments
 (0)