From 14b28b222655670e66c22120191577c294df034d Mon Sep 17 00:00:00 2001 From: MOZGIII Date: Tue, 3 Oct 2017 22:14:36 +0300 Subject: [PATCH] Used writeTwoBytes in Stream.WriteEmptyArray --- feature_stream.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/feature_stream.go b/feature_stream.go index 0294dd4..9323848 100644 --- a/feature_stream.go +++ b/feature_stream.go @@ -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