aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNigel Tao <nigeltao@golang.org>2016-04-15 16:29:43 +1000
committerNigel Tao <nigeltao@golang.org>2016-04-15 06:57:44 +0000
commit80e7dddffafa6c5eb8e98d642b87546eb8e445ab (patch)
tree012f8a4ffb81a0d4066504bdc8f04963cdd62277 /src
parent106b9d391518fe382162559e1520a8af72564130 (diff)
downloadgo-80e7dddffafa6c5eb8e98d642b87546eb8e445ab.tar.xz
compress/flate: fix a fmt.Fprintf style nit in a test.
It's not a big deal (the for loop drops from 130-ish to 120-ish milliseconds for me) but it's not a big change either. Change-Id: I161a49caab5cae5a2b87866ed1dfb93627be8013 Reviewed-on: https://go-review.googlesource.com/22110 Reviewed-by: Klaus Post <klauspost@gmail.com> Reviewed-by: Nigel Tao <nigeltao@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/compress/flate/writer_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compress/flate/writer_test.go b/src/compress/flate/writer_test.go
index e4c5c8cc72..7967cd739c 100644
--- a/src/compress/flate/writer_test.go
+++ b/src/compress/flate/writer_test.go
@@ -91,7 +91,7 @@ func TestWriteError(t *testing.T) {
n *= 4
}
for i := 0; i < n; i++ {
- buf.WriteString(fmt.Sprintf("asdasfasf%d%dfghfgujyut%dyutyu\n", i, i, i))
+ fmt.Fprintf(buf, "asdasfasf%d%dfghfgujyut%dyutyu\n", i, i, i)
}
in := buf.Bytes()
// We create our own buffer to control number of writes.