Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/elixir/lib/json.ex
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ defmodule JSON do

For streaming decoding, see Erlang's `:json` module.
"""
@spec decode(binary(), term(), keyword()) :: {term(), term(), binary()} | decode_error_reason()
@spec decode(binary(), term(), keyword()) ::
{term(), term(), binary()} | {:error, decode_error_reason()}
def decode(binary, acc, decoders) when is_binary(binary) and is_list(decoders) do
decoders = Keyword.put_new(decoders, :null, nil)

Expand Down