Skip to content

Commit

Permalink
Append chars instead of strings
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite committed Jul 24, 2019
1 parent 6b88e3a commit cf3fd26
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/json/token.cr
Expand Up @@ -82,17 +82,17 @@ class JSON::Token
when .string?
string_value.to_s(io)
when .begin_array?
io << "["
io << '['
when .end_array?
io << "]"
io << ']'
when .begin_object?
io << "{"
io << '{'
when .end_object?
io << "}"
io << '}'
when .colon?
io << ":"
io << ':'
when .comma?
io << ","
io << ','
when .eof?
io << "<EOF>"
else
Expand Down

0 comments on commit cf3fd26

Please sign in to comment.