aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/testing/iotest/reader.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/testing/iotest/reader.go')
-rw-r--r--src/pkg/testing/iotest/reader.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/testing/iotest/reader.go b/src/pkg/testing/iotest/reader.go
index ce2da08b03..0a1a3f6b3c 100644
--- a/src/pkg/testing/iotest/reader.go
+++ b/src/pkg/testing/iotest/reader.go
@@ -63,7 +63,7 @@ func (r *dataErrReader) Read(p []byte) (n int, err os.Error) {
break
}
n = copy(p, r.unread);
- r.unread = r.unread[n:len(r.unread)];
+ r.unread = r.unread[n:];
}
return;
}