mirror of
https://github.com/json-iterator/go.git
synced 2025-04-23 11:37:32 +02:00
Merge pull request #182 from MOZGIII/patch-1
Used writeTwoBytes in Stream.WriteEmptyArray
This commit is contained in:
commit
4de15a3a87
@ -283,8 +283,7 @@ func (stream *Stream) WriteArrayStart() {
|
|||||||
|
|
||||||
// WriteEmptyArray write []
|
// WriteEmptyArray write []
|
||||||
func (stream *Stream) WriteEmptyArray() {
|
func (stream *Stream) WriteEmptyArray() {
|
||||||
stream.writeByte('[')
|
stream.writeTwoBytes('[', ']')
|
||||||
stream.writeByte(']')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// WriteArrayEnd write ] with possible indention
|
// WriteArrayEnd write ] with possible indention
|
||||||
|
Loading…
x
Reference in New Issue
Block a user