Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion lib/json/encoder.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# 0. You just DO WHAT THE FUCK YOU WANT TO.

defmodule JSON.Encode do
@spec it(term, Keyword.t) :: String.t
@spec it(term, Keyword.t) :: { :ok, String.t }
def it(data, options \\ []) do
case JSON.Encoder.to_json(data, options) do
{ encode } when encode |> is_binary ->
Expand Down
2 changes: 1 addition & 1 deletion lib/json/parser.ex
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ defmodule JSON.Parser do
{ :error, :invalid, token }
end

@spec parse(String.t) :: t
@spec parse!(String.t) :: t
def parse!(string) do
case parse(string) do
{ :ok, value } ->
Expand Down