1
0
mirror of https://github.com/golang/go synced 2024-11-13 17:20:22 -07:00

minor fix

R=rsc
DELTA=2  (1 added, 1 deleted, 0 changed)
OCL=32828
CL=32830
This commit is contained in:
Robert Griesemer 2009-08-06 10:53:29 -07:00
parent 158f3f6440
commit 2117ad192d

View File

@ -107,11 +107,11 @@ func (b *Reader) fill() os.Error {
// Read new data. // Read new data.
n, e := b.rd.Read(b.buf[b.w:len(b.buf)]); n, e := b.rd.Read(b.buf[b.w:len(b.buf)]);
b.w += n;
if e != nil { if e != nil {
b.err = e; b.err = e;
return e return e
} }
b.w += n;
return nil return nil
} }