Fix silly sizing mistake

This commit is contained in:
skiesel 2019-03-21 22:29:10 -04:00
parent 8ee54a11c2
commit ce922135cd
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ func (p *TLDRPlugin) message(kind bot.Kind, message msg.Message, args ...interfa
bestUsers := make([][]string, nTopics) bestUsers := make([][]string, nTopics)
supportingDocs := p.Bot.Config().GetInt("TLDR.Support", 3) supportingDocs := p.Bot.Config().GetInt("TLDR.Support", 3)
for i := 0; i < supportingDocs; i++ { for i := 0; i < nTopics; i++ {
bestScores[i] = make([]float64, supportingDocs) bestScores[i] = make([]float64, supportingDocs)
bestDocs[i] = make([]string, supportingDocs) bestDocs[i] = make([]string, supportingDocs)
bestUsers[i] = make([]string, supportingDocs) bestUsers[i] = make([]string, supportingDocs)