Skip to content

Commit 2d09a03

Browse files
Merge pull request #49 from Haru0517/master
Fix `X` to anonymous variable in `greater_than`
2 parents ffb2bfa + cdf56dc commit 2d09a03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter-03/exercises.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
%% ?- greater_than(succ(succ(succ(0))),succ(0)). -> true
2929
%% ?- greater_than(succ(succ(0)),succ(succ(succ(0)))). -> no
3030

31-
greater_than(succ(X),0).
31+
greater_than(succ(_),0).
3232
greater_than(succ(X),succ(Y)) :-
3333
greater_than(X,Y).
3434

0 commit comments

Comments
 (0)