From 8096b47dd09fcda8712f7a3c07dced5244123a4d Mon Sep 17 00:00:00 2001 From: Shulhan Date: Tue, 2 May 2023 01:06:11 +0700 Subject: all: prealloc slice with possible minimum capabilities --- src/mime/quotedprintable/reader_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mime/quotedprintable/reader_test.go') diff --git a/src/mime/quotedprintable/reader_test.go b/src/mime/quotedprintable/reader_test.go index 0af1e5f0f7..01647840d4 100644 --- a/src/mime/quotedprintable/reader_test.go +++ b/src/mime/quotedprintable/reader_test.go @@ -193,7 +193,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)) } -- cgit v1.3