浏览代码

Used writeTwoBytes in Stream.WriteEmptyArray

MOZGIII 8 年之前
父节点
当前提交
14b28b2226
共有 1 个文件被更改,包括 1 次插入2 次删除
  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