Skip to content

Commit

Permalink
Fix assoc.pl file
Browse files Browse the repository at this point in the history
  • Loading branch information
aarroyoc committed Jan 19, 2023
1 parent 46d1e3b commit f072761
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/assoc.pl
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
%
% 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),
Expand Down Expand Up @@ -218,7 +218,7 @@
% 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
Expand Down Expand Up @@ -249,7 +249,7 @@
% 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
Expand Down

0 comments on commit f072761

Please sign in to comment.