fix typo in README example

This commit is contained in:
alisdair sullivan 2012-05-23 22:46:17 -07:00
parent c15623a767
commit a46d25129a

View file

@ -381,7 +381,7 @@ encode(Term, Opts) -> JSON
```erlang ```erlang
1> F = fun(V) when is_list(V) -> V; (V) -> false end. 1> F = fun(V) when is_list(V) -> V; (V) -> false end.
2> jsx:encode([{<<"a list">>, [true, <<"a string">>, 1]}], [{pre_encode, F}]. 2> jsx:encode([{<<"a list">>, [true, <<"a string">>, 1]}], [{pre_encode, F}]).
<<"{\"a list\": [false, false, false]}">> <<"{\"a list\": [false, false, false]}">>
``` ```