Skip to content

Commit

Permalink
Fix stream end type and result (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
williamthome authored Aug 8, 2024
1 parent ce5bea9 commit 951e317
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/euneus.erl
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ decode_stream_continue(JSON, State) ->

-spec decode_stream_end(State) -> Result when
State :: euneus_decoder:stream_state(),
Result :: euneus_decoder:stream_result().
Result :: {end_of_input, term()}.
%% @equiv euneus_decoder:stream_continue(end_of_input, State)
%%
%% @doc Ends parsing a stream of bytes of a JSON value.
Expand All @@ -212,7 +212,8 @@ decode_stream_continue(JSON, State) ->
%% {end_of_input,123}
%% '''
decode_stream_end(State) ->
euneus_decoder:stream_continue(end_of_input, State).
{end_of_input, Term} = euneus_decoder:stream_continue(end_of_input, State),
{end_of_input, Term}.

-spec minify(JSON) -> binary() when
JSON :: binary().
Expand Down

0 comments on commit 951e317

Please sign in to comment.