doc: update some descriptions

This commit is contained in:
nadoo committed 2018-07-25 08:23:58 +08:00
1 parent 49021f167c
commit 21923af1cd
5 files changed
+18 -18

No files matched your search

+1 -1
View File
@@ -81,9 +81,9 @@ func (r *chunkedReader) Read(b []byte) (int, error) {
if err != nil {
return 0, err
}
r.leftBytes = int(binary.BigEndian.Uint16(r.buf[:lenSize]))
// if length == 0, then this is the end
r.leftBytes = int(binary.BigEndian.Uint16(r.buf[:lenSize]))
if r.leftBytes == 0 {
return 0, nil
}