Explorar o código

Merge pull request #182 from MOZGIII/patch-1

Used writeTwoBytes in Stream.WriteEmptyArray
Tao Wen %!s(int64=8) %!d(string=hai) anos
pai
achega
4de15a3a87
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      feature_stream.go

+ 1 - 2
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