]> Cypherpunks repositories - gostls13.git/commitdiff
compress/flate: fix a fmt.Fprintf style nit in a test.
authorNigel Tao <nigeltao@golang.org>
Fri, 15 Apr 2016 06:29:43 +0000 (16:29 +1000)
committerNigel Tao <nigeltao@golang.org>
Fri, 15 Apr 2016 06:57:44 +0000 (06:57 +0000)
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>
src/compress/flate/writer_test.go

index e4c5c8cc72ba0ae84fd702b67157e04c1be00a7e..7967cd739c5862d019e5d080e3523efc4a5747c2 100644 (file)
@@ -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.