Skip to content

Commit

Permalink
bufio: fix indicies in TestWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Nov 9, 2018
1 parent 891682c commit f3d59fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bufio/bufio_test.go
Expand Up @@ -550,7 +550,7 @@ func TestWriter(t *testing.T) {
t.Errorf("%s: %d bytes written", context, len(written))
}
for l := 0; l < len(written); l++ {
if written[i] != data[i] {
if written[l] != data[l] {
t.Errorf("wrong bytes written")
t.Errorf("want=%q", data[0:len(written)])
t.Errorf("have=%q", written)
Expand Down

0 comments on commit f3d59fe

Please sign in to comment.