This commit is contained in:
alisdair sullivan 2012-03-25 13:14:08 -07:00
commit 91dcb65e3c
2 changed files with 9 additions and 5 deletions

View file

@ -34,7 +34,8 @@
-type opts() :: list().
-spec to_term(Source::(binary() | list()), Opts::opts()) -> binary().
-spec to_term(Source::(binary() | list()), Opts::opts()) ->
list({binary(), any()}).
to_term(Source, Opts) when is_list(Opts) ->
(jsx:decoder(?MODULE, Opts, jsx_utils:extract_opts(Opts)))(Source).
@ -173,4 +174,4 @@ naked_test_() ->
{"naked string", ?_assertEqual(to_term(<<"\"string\"">>, []), <<"string">>)}
].
-endif.
-endif.