more type fixes

This commit is contained in:
alisdair sullivan 2010-08-11 23:11:12 -07:00
parent 6120455a22
commit b016087ceb
2 changed files with 3 additions and 3 deletions

View file

@ -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()}

View file

@ -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, []).