diff options
| author | Shulhan <m.shulhan@gmail.com> | 2024-10-26 00:48:33 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2026-02-03 18:04:30 +0700 |
| commit | 011e40da85bddf83fee0ded83cb9115b7a88b3d4 (patch) | |
| tree | 355cc352e66fc64ce94f17658c31e699aa798bb1 /src/mime/quotedprintable/reader_test.go | |
| parent | 85232e51b20971e0d211b25fa3aa412bc7987404 (diff) | |
| download | go-011e40da85bddf83fee0ded83cb9115b7a88b3d4.tar.xz | |
all: prealloc slice with possible minimum capabilities
Diffstat (limited to 'src/mime/quotedprintable/reader_test.go')
| -rw-r--r-- | src/mime/quotedprintable/reader_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mime/quotedprintable/reader_test.go b/src/mime/quotedprintable/reader_test.go index 1ff858a69c..c12d2ca3db 100644 --- a/src/mime/quotedprintable/reader_test.go +++ b/src/mime/quotedprintable/reader_test.go @@ -197,7 +197,7 @@ func TestExhaustive(t *testing.T) { } res["OK"]++ }) - var outcomes []string + outcomes := make([]string, 0, len(res)) for k, v := range res { outcomes = append(outcomes, fmt.Sprintf("%v: %d", k, v)) } |
