mirror of
https://github.com/valitydev/msgpack-erlang.git
synced 2024-11-06 00:35:24 +00:00
Add fastfix for pack function return types
This commit is contained in:
parent
a1e015d351
commit
640fea4c60
@ -86,10 +86,10 @@ binary_to_term(Bin, Opt) ->
|
||||
|
||||
%% @doc Encode an erlang term into an msgpack binary.
|
||||
%% Returns {error, {badarg, term()}} if the input is illegal.
|
||||
-spec pack(msgpack:object()) -> binary() | {error, {badarg, term()}}.
|
||||
-spec pack(msgpack:object()) -> binary() | {error, _}.
|
||||
pack(Term) -> msgpack:pack(Term, []).
|
||||
|
||||
-spec pack(msgpack:object(), msgpack:options()) -> binary().
|
||||
-spec pack(msgpack:object(), msgpack:options()) -> binary() | {error, _}.
|
||||
pack(Term, Opts) ->
|
||||
Option = parse_options(Opts),
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user