s/apiPkg/result

This commit is contained in:
GeertJohan 2014-04-06 18:16:22 +02:00
parent d22ea164e2
commit 8f75e370d8

View File

@ -266,9 +266,9 @@ func renderPackagePage(resp http.ResponseWriter, req *http.Request, repo *Repo)
searchResp.Body.Close() searchResp.Body.Close()
if err == nil { if err == nil {
gopkgPath := repo.GopkgPath() gopkgPath := repo.GopkgPath()
for _, apiPkg := range searchResults.Results { for _, result := range searchResults.Results {
if apiPkg.Path == gopkgPath { if result.Path == gopkgPath {
data.Synopsis = apiPkg.Synopsis data.Synopsis = result.Synopsis
break break
} }
} }