Merge pull request #3 from ajhager/master

Fix Writers returning n-1 bytes written.
This commit is contained in:
jimt 2012-07-14 11:20:48 -07:00
commit fea0373680
2 changed files with 74 additions and 70 deletions

View File

@ -31,5 +31,7 @@ func (w *ByteWriter) Write(p []byte) (n int, err error) {
w.c++
}
n++
return
}

View File

@ -31,5 +31,7 @@ func (w *StringWriter) Write(p []byte) (n int, err error) {
w.c++
}
n++
return
}