updated examples for new number api

This commit is contained in:
alisdair sullivan 2010-06-01 02:36:02 -07:00
parent fbf6c30c53
commit c287315ebf
2 changed files with 10 additions and 8 deletions

View file

@ -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) ->