From: Matt Joiner Date: Wed, 2 Oct 2013 09:54:23 +0000 (+1000) Subject: Failing WriteAt should return ErrShortWrite X-Git-Tag: v1.0.0~1806 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=381c6bef687f3e2ce9120b68d708a1881e96d1bc;p=btrtrc.git Failing WriteAt should return ErrShortWrite See the implementation of io.Copy. --- diff --git a/mmap_span.go b/mmap_span.go index f7d91059..9d2f39bb 100644 --- a/mmap_span.go +++ b/mmap_span.go @@ -56,7 +56,7 @@ func (me MMapSpan) WriteAt(p []byte, off int64) (n int, err error) { return len(p) == 0 }) if len(p) != 0 { - err = io.EOF + err = io.ErrShortWrite } return }