From b016087ceb0c0e526cea6afb70d34dfa38cdb1af Mon Sep 17 00:00:00 2001 From: alisdair sullivan Date: Wed, 11 Aug 2010 23:11:12 -0700 Subject: [PATCH] more type fixes --- include/jsx_types.hrl | 2 +- src/jsx.erl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/jsx_types.hrl b/include/jsx_types.hrl index 855eb8e..f98b6eb 100644 --- a/include/jsx_types.hrl +++ b/include/jsx_types.hrl @@ -80,7 +80,7 @@ -type encoder_opts() :: [encoder_opt()]. -type encoder_opt() :: {strict, true | false} - | {encoding, auto | supported_utf()} + | {encoding, supported_utf()} | {space, integer()} | space | {indent, integer()} diff --git a/src/jsx.erl b/src/jsx.erl index 6e9dd7b..b552dc3 100644 --- a/src/jsx.erl +++ b/src/jsx.erl @@ -77,8 +77,8 @@ term_to_json(JSON, Opts) -> jsx_eep0018:term_to_json(JSON, Opts). --spec json_to_term(JSON::binary()) -> json(). --spec json_to_term(JSON::binary(), Opts::decoder_opts()) -> json(). +-spec json_to_term(JSON::binary()) -> eep0018(). +-spec json_to_term(JSON::binary(), Opts::decoder_opts()) -> eep0018(). json_to_term(JSON) -> json_to_term(JSON, []).