We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1e015d commit 640fea4Copy full SHA for 640fea4
1 file changed
src/msgpack.erl
@@ -86,10 +86,10 @@ binary_to_term(Bin, Opt) ->
86
87
%% @doc Encode an erlang term into an msgpack binary.
88
%% Returns {error, {badarg, term()}} if the input is illegal.
89
--spec pack(msgpack:object()) -> binary() | {error, {badarg, term()}}.
+-spec pack(msgpack:object()) -> binary() | {error, _}.
90
pack(Term) -> msgpack:pack(Term, []).
91
92
--spec pack(msgpack:object(), msgpack:options()) -> binary().
+-spec pack(msgpack:object(), msgpack:options()) -> binary() | {error, _}.
93
pack(Term, Opts) ->
94
Option = parse_options(Opts),
95
try
0 commit comments