updated examples for new number api
This commit is contained in:
parent
fbf6c30c53
commit
c287315ebf
2 changed files with 10 additions and 8 deletions
|
@ -88,12 +88,12 @@ jsx_event(end_of_stream, {Acc, _, _, _}) ->
|
|||
Acc.
|
||||
|
||||
|
||||
format(number, Number) ->
|
||||
Number;
|
||||
format(string, String) ->
|
||||
"\"" ++ String ++ "\"";
|
||||
format(literal, Literal) ->
|
||||
erlang:atom_to_list(Literal).
|
||||
erlang:atom_to_list(Literal);
|
||||
format(_, Number) ->
|
||||
Number;
|
||||
|
||||
|
||||
indent(Indent, Level) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue