aboutsummaryrefslogtreecommitdiff
path: root/src/mime/quotedprintable/reader_test.go
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2023-05-02 01:06:11 +0700
committerShulhan <m.shulhan@gmail.com>2024-01-25 04:01:14 +0700
commit8096b47dd09fcda8712f7a3c07dced5244123a4d (patch)
tree26339e20861f0d89cff1cf3dc763d7b99b4aaee8 /src/mime/quotedprintable/reader_test.go
parent54386c4a7e68ab281545116220600f670e8f9e14 (diff)
downloadgo-8096b47dd09fcda8712f7a3c07dced5244123a4d.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.go2
1 files changed, 1 insertions, 1 deletions
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))
}