Merge pull request #3 from ajhager/master
Fix Writers returning n-1 bytes written.
This commit is contained in:
commit
fea0373680
|
@ -31,5 +31,7 @@ func (w *ByteWriter) Write(p []byte) (n int, err error) {
|
||||||
w.c++
|
w.c++
|
||||||
}
|
}
|
||||||
|
|
||||||
|
n++
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,5 +31,7 @@ func (w *StringWriter) Write(p []byte) (n int, err error) {
|
||||||
w.c++
|
w.c++
|
||||||
}
|
}
|
||||||
|
|
||||||
|
n++
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user