소스 검색

Merge pull request #182 from MOZGIII/patch-1

Used writeTwoBytes in Stream.WriteEmptyArray
Tao Wen 8 년 전
부모
커밋
4de15a3a87
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