Skip to content

Commit fd849ac

Browse files
author
Georgi Shopov
committed
Fix typo in the practical session of chapter 10
1 parent c3aa905 commit fd849ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chapter-10/practical-session.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,8 @@
464464
%% List = [X,t(Y)].
465465

466466
%% Bit tricky:
467-
%% if \+ H = Term succeeds we know that the H and Term can be unified so we fail
468-
%% and go to the default to second myUnifiable and add H to List2.
467+
%% if \+ H = Term succeeds we know that the H and Term cannot be unified so we
468+
%% fail and go to the default to second myUnifiable and add H to List2.
469469
%% if it fails we use a cut (i.e. it can be unified) we make a cut so that we
470470
%% don't end up trying the second myUnifiable which would add it regardless to
471471
%% List2 even though it can't be unified.

0 commit comments

Comments
 (0)