aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/callers_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/callers_test.go')
-rw-r--r--src/runtime/callers_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/callers_test.go b/src/runtime/callers_test.go
index 9429442fc0..c4cea7ef87 100644
--- a/src/runtime/callers_test.go
+++ b/src/runtime/callers_test.go
@@ -40,7 +40,7 @@ func testCallers(t *testing.T, pcs []uintptr, pan bool) {
}
}
- var seen []string
+ seen := make([]string, 0, len(m))
for k := range m {
seen = append(seen, k)
}