From: notoria Date: Sat, 18 Apr 2020 13:21:19 +0000 (+0200) Subject: Fixed the predicate name when error is thrown X-Git-Tag: v0.8.123~138 X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=196d74c3a0a12e382aebbaac10f80886d29c28e3;p=scryer-prolog.git Fixed the predicate name when error is thrown --- diff --git a/src/prolog/lib/charsio.pl b/src/prolog/lib/charsio.pl index 29a668fd..11dc04b7 100644 --- a/src/prolog/lib/charsio.pl +++ b/src/prolog/lib/charsio.pl @@ -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)) ).