Skip to content

Commit

Permalink
fix: correct the return type for json_decode!
Browse files Browse the repository at this point in the history
  • Loading branch information
squirmy committed Nov 1, 2024
1 parent e71019a commit 1566a25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/protox.ex
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ defmodule Protox do
Throwing version of `json_decode/2`.
"""
@doc since: "1.6.0"
@spec json_decode!(iodata(), atom(), keyword()) :: iodata() | no_return()
@spec json_decode!(iodata(), atom(), keyword()) :: struct() | no_return()
def json_decode!(input, message_module, opts \\ []) do
message_module.json_decode!(input, opts)
end
Expand Down

0 comments on commit 1566a25

Please sign in to comment.