]> Repositorios git - scryer-prolog.git/commitdiff
Fix assoc.pl file
authorAdrián Arroyo Calle <[email protected]>
Thu, 19 Jan 2023 20:18:40 +0000 (21:18 +0100)
committerAdrián Arroyo Calle <[email protected]>
Thu, 19 Jan 2023 20:18:40 +0000 (21:18 +0100)
src/lib/assoc.pl

index cb3a6f621f07825cde9666ba71ae23d620d4812c..e32e7d8240fad469229c5a9c141a41ee2daf1887 100644 (file)
@@ -172,7 +172,7 @@ gen_assoc_(Key, t(_,_,_,_,R), Val) :-
 %
 % True if Key-Value is an association in Assoc.
 %
-% Throws error: type\_error(assoc, Assoc) if Assoc is not an association list.
+% Throws error: `type_error(assoc, Assoc)` if Assoc is not an association list.
 
 get_assoc(Key, Assoc, Val) :-
     must_be(assoc, Assoc),
@@ -218,7 +218,7 @@ get_assoc(>, Key, V, L, R, Val, V, L, NR, NVal) :-
 % Create an association from a list Pairs of Key-Value pairs. List
 % must not contain duplicate keys.
 %
-% Throws error: domain\_error(unique\_key\_pairs, List) if List contains duplicate keys
+% Throws error: `domain_error(unique_key_pairs, List)` if List contains duplicate keys
 
 list_to_assoc(List, Assoc) :-
     (  List = [] -> Assoc = t
@@ -249,7 +249,7 @@ list_to_assoc(N, List, More, Depth, t(K,V,Balance,L,R)) :-
 % pairs. The pairs must occur in strictly ascending order of
 % their keys.
 %
-% Throws error: domain\_error(key\_ordered\_pairs, List) if pairs are not ordered.
+% Throws error: `domain_error(key_ordered_pairs, List)` if pairs are not ordered.
 
 ord_list_to_assoc(Sorted, Assoc) :-
     (  Sorted = [] -> Assoc = t