aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/bytes/buffer_test.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-09-15 09:41:59 -0700
committerRuss Cox <rsc@golang.org>2009-09-15 09:41:59 -0700
commitca6a0fee1b3f68ab4e9f8e1c7fbe80f178e68c09 (patch)
tree46eac6aefe26f0b9056bff646d960bcba3d076cf /src/pkg/bytes/buffer_test.go
parent1a3198907bf18ac961762024cf2a27581e6be6c3 (diff)
downloadgo-ca6a0fee1b3f68ab4e9f8e1c7fbe80f178e68c09.tar.xz
more "declared and not used".
the last round omitted := range and only checked 1 out of N vars in a multi-var := R=r OCL=34624 CL=34638
Diffstat (limited to 'src/pkg/bytes/buffer_test.go')
-rw-r--r--src/pkg/bytes/buffer_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/bytes/buffer_test.go b/src/pkg/bytes/buffer_test.go
index 4d3fca8727..bb6593774a 100644
--- a/src/pkg/bytes/buffer_test.go
+++ b/src/pkg/bytes/buffer_test.go
@@ -164,7 +164,7 @@ func TestMixedReadsAndWrites(t *testing.T) {
rlen := rand.Intn(len(data));
fub := make([]byte, rlen);
- n, err := buf.Read(fub);
+ n, _ := buf.Read(fub);
s = s[n : len(s)];
}
empty(t, "TestMixedReadsAndWrites (2)", &buf, s, make([]byte, buf.Len()));