From 8f75e370d8a7ee34d9c6f3c894413b18eb75179d Mon Sep 17 00:00:00 2001 From: GeertJohan Date: Sun, 6 Apr 2014 18:16:22 +0200 Subject: [PATCH] s/apiPkg/result --- page.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/page.go b/page.go index 5e48865..f06aa63 100644 --- a/page.go +++ b/page.go @@ -266,9 +266,9 @@ func renderPackagePage(resp http.ResponseWriter, req *http.Request, repo *Repo) searchResp.Body.Close() if err == nil { gopkgPath := repo.GopkgPath() - for _, apiPkg := range searchResults.Results { - if apiPkg.Path == gopkgPath { - data.Synopsis = apiPkg.Synopsis + for _, result := range searchResults.Results { + if result.Path == gopkgPath { + data.Synopsis = result.Synopsis break } }