fix specs for to_term/x, thanks to michael truog

This commit is contained in:
alisdair sullivan 2012-03-25 13:18:26 -07:00
parent 91dcb65e3c
commit b57750fcfc
2 changed files with 11 additions and 7 deletions

View file

@ -60,11 +60,8 @@ format(Source) -> format(Source, []).
format(Source, Opts) -> jsx_to_json:format(Source, Opts).
-spec to_term(Source::binary()) ->
list({binary(), any()}).
-spec to_term(Source::binary(), Opts::jsx_to_term:opts()) ->
list({binary(), any()}).
-spec to_term(Source::binary()) -> jsx_to_term:json_value().
-spec to_term(Source::binary(), Opts::jsx_to_term:opts()) -> jsx_to_term:json_value().
to_term(Source) -> to_term(Source, []).