Skip to content

Commit 3dd2a6c

Browse files
author
Shati Patel
committed
QL etudes: Add further explanation + link
1 parent 427325b commit 3dd2a6c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/language/learn-ql/beginner/heir.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,5 @@ What next?
160160
----------
161161

162162
- Learn more about recursion in the `QL language handbook <https://help.semmle.com/QL/ql-handbook/index.html>`__.
163+
- Put your QL skills to the test and solve the :doc:`River crossing puzzle <../ql-etudes/river-crossing>`.
163164
- Start using QL to analyze projects. See :doc:`Learning QL <../../index>` for a summary of the available languages and resources.

docs/language/learn-ql/ql-etudes/river-crossing.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,11 @@ that returns the resulting path.
227227
.. literalinclude:: river-crossing.ql
228228
:lines: 115-117
229229

230-
For now, the path defined in the above predicate ``reachesVia`` just lists the order of cargo items to ferry.
231-
You could tweak the predicates and the select clause to make the solution clearer. Here are some suggestions:
230+
The `don't-care expression <https://help.semmle.com/QL/ql-handbook/expressions.html#don-t-care-expressions>`__ (``_``),
231+
as the second argument to the ``reachesVia`` predicate, represents any value of ``visitedStates``.
232+
233+
For now, the path defined in ``reachesVia`` just lists the order of cargo items to ferry.
234+
You could tweak the predicate and the select clause to make the solution clearer. Here are some suggestions:
232235

233236
- Display more information, such as the direction in which the cargo is ferried, for example
234237
``"Goat to the left shore"``.

0 commit comments

Comments
 (0)