]> Repositorios git - scryer-prolog.git/commitdiff
Fixed the predicate name when error is thrown
authornotoria <[email protected]>
Sat, 18 Apr 2020 13:21:19 +0000 (15:21 +0200)
committernotoria <[email protected]>
Sat, 18 Apr 2020 13:21:19 +0000 (15:21 +0200)
src/prolog/lib/charsio.pl

index 29a668fd84b829926da0ea070ecbbdc05e8cf699..11dc04b770f94959d54e4d10f3c3f7fc759101c9 100644 (file)
@@ -61,7 +61,7 @@ get_single_char(C) :-
     (  var(C) -> '$get_single_char'(C)
     ;  C == end_of_file  -> '$get_single_char'(C)
     ;  atom_length(C, 1) -> '$get_single_char'(C)
-    ;  throw(error(domain_error(in_character, C), get_char/1))
+    ;  throw(error(domain_error(in_character, C), get_single_char/1))
     ).