renames jsx_opts to jsx_decoder_opts

This commit is contained in:
alisdair sullivan 2011-07-10 11:34:14 -07:00
parent e80d337cc0
commit 746d8e469c
3 changed files with 6 additions and 5 deletions

View file

@ -46,7 +46,7 @@
parser() -> decoder([]).
-spec parser(OptsList::jsx_opts()) -> jsx_decoder().
-spec parser(OptsList::jsx_decoder_opts()) -> jsx_decoder().
parser(OptsList) -> decoder(OptsList).
@ -57,7 +57,7 @@ parser(OptsList) -> decoder(OptsList).
decoder() -> decoder([]).
-spec decoder(OptsList::jsx_opts()) -> jsx_decoder().
-spec decoder(OptsList::jsx_decoder_opts()) -> jsx_decoder().
decoder(OptsList) ->

View file

@ -31,8 +31,9 @@
).
-type jsx_opts() :: [jsx_opt()].
-type jsx_opt() :: {escaped_unicode, ascii | codepoint | none}
-type jsx_decoder_opts() :: [jsx_decoder_opt()].
-type jsx_decoder_opt() :: {escaped_unicode, ascii | codepoint | none}
| {multi_term, true | false}
| {encoding, auto
| utf8

View file

@ -26,7 +26,7 @@
%% this file should take that into account
-spec decoder(OptsList::jsx_opts()) -> jsx_decoder().
-spec decoder(OptsList::jsx_decoder_opts()) -> jsx_decoder().
%% opts record for decoder
-record(opts, {