1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-15 22:50:24 +02:00

optimize read nil/true/false

This commit is contained in:
Tao Wen
2017-01-18 23:33:40 +08:00
parent 6efc6c44ac
commit a73e48e8bf
8 changed files with 216 additions and 202 deletions

View File

@ -134,7 +134,7 @@ func (b *Stream) WriteString(s string) {
b.writeByte('"')
}
func (stream *Stream) WriteNull() {
func (stream *Stream) WriteNil() {
stream.Write(bytesNull)
}