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 }