summaryrefslogtreecommitdiff
path: root/src/cmd/godoc/index.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/godoc/index.go')
-rw-r--r--src/cmd/godoc/index.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/godoc/index.go b/src/cmd/godoc/index.go
index 9ee9e77b4..94f2b9cba 100644
--- a/src/cmd/godoc/index.go
+++ b/src/cmd/godoc/index.go
@@ -255,7 +255,7 @@ func newFileRun(h0 *RunList, i, j int) interface{} {
// reduce the list of Spots into a list of KindRuns
var h1 RunList;
- h1.Vector.Init(j - i);
+ h1.Vector.Resize(j-i, 0);
k := 0;
for ; i < j; i++ {
h1.Set(k, h0.At(i).(Spot).Info);