Skip to content

Commit bbab95e

Browse files
author
Dmitry Manik
authored
Merge pull request #1 from manikdv/fix/erlang-19-dialyzer-errors
Add fastfix for pack function return types
2 parents a1e015d + 640fea4 commit bbab95e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/msgpack.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ binary_to_term(Bin, Opt) ->
8686

8787
%% @doc Encode an erlang term into an msgpack binary.
8888
%% Returns {error, {badarg, term()}} if the input is illegal.
89-
-spec pack(msgpack:object()) -> binary() | {error, {badarg, term()}}.
89+
-spec pack(msgpack:object()) -> binary() | {error, _}.
9090
pack(Term) -> msgpack:pack(Term, []).
9191

92-
-spec pack(msgpack:object(), msgpack:options()) -> binary().
92+
-spec pack(msgpack:object(), msgpack:options()) -> binary() | {error, _}.
9393
pack(Term, Opts) ->
9494
Option = parse_options(Opts),
9595
try

0 commit comments

Comments
 (0)