nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9996099
)
json: use `write_char c` instead of `write c.to_s`
author
Jean Privat
<jean@pryen.org>
Thu, 16 Feb 2017 14:39:52 +0000
(09:39 -0500)
committer
Jean Privat
<jean@pryen.org>
Thu, 16 Feb 2017 14:39:52 +0000
(09:39 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>
lib/json/serialization_write.nit
patch
|
blob
|
history
diff --git
a/lib/json/serialization_write.nit
b/lib/json/serialization_write.nit
index
43987e8
..
e226e30
100644
(file)
--- a/
lib/json/serialization_write.nit
+++ b/
lib/json/serialization_write.nit
@@
-161,7
+161,7
@@
redef class Text
v.stream.write char.escape_to_utf16
end
else
- v.stream.write char.to_s
+ v.stream.write_char char
end
end
v.stream.write "\""