fix typo in README example
This commit is contained in:
parent
c15623a767
commit
a46d25129a
1 changed files with 1 additions and 1 deletions
|
@ -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]}">>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue