1
0
mirror of https://github.com/json-iterator/go.git synced 2025-05-19 21:53:05 +02:00

Merge pull request from MOZGIII/patch-1

Used writeTwoBytes in Stream.WriteEmptyArray
This commit is contained in:
Tao Wen 2017-10-04 02:25:32 -05:00 committed by GitHub
commit 4de15a3a87

@ -283,8 +283,7 @@ func (stream *Stream) WriteArrayStart() {
// WriteEmptyArray write []
func (stream *Stream) WriteEmptyArray() {
stream.writeByte('[')
stream.writeByte(']')
stream.writeTwoBytes('[', ']')
}
// WriteArrayEnd write ] with possible indention