Document the arguments to CopyCallback

This commit is contained in:
Steve Streeting 2015-06-17 09:59:15 +01:00
parent 968faba7e1
commit fd2fc1067c

@ -14,7 +14,7 @@ type CallbackReader struct {
io.Reader
}
type CopyCallback func(int64, int64, int) error
type CopyCallback func(totalSize int64, readSoFar int64, readSinceLast int) error
func (w *CallbackReader) Read(p []byte) (int, error) {
n, err := w.Reader.Read(p)