Skip to content

Commit

Permalink
Fix spec for erldns_zone_parser:zone_to_erlang/1 (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide authored Nov 12, 2024
1 parent b24f547 commit 6cee715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/erldns_zone_parser.erl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ start_link() ->
%% @doc Takes a JSON zone and turns it into the tuple {Name, Sha, Records}.
%%
%% The default timeout for parsing is currently 30 seconds.
-spec zone_to_erlang(binary()) -> {binary(), binary(), [dns:rr()], [erldns:keyset()]}.
-spec zone_to_erlang(map() | list()) -> {binary(), binary(), [dns:rr()], [erldns:keyset()]}.
zone_to_erlang(Zone) ->
gen_server:call(?SERVER, {parse_zone, Zone}, ?PARSE_TIMEOUT).

Expand Down

0 comments on commit 6cee715

Please sign in to comment.