diff --git a/godoc/static/package.txt b/godoc/static/package.txt index ec4ef1cc..868d0643 100644 --- a/godoc/static/package.txt +++ b/godoc/static/package.txt @@ -61,7 +61,7 @@ package {{.Name}} */}}{{if .Vars}}{{range .Vars}}{{node $ .Decl}} {{comment_text .Doc " " "\t"}} -{{example_text $ .Name " "}}{{end}}{{end}}{{/* +{{range $name := .Names}}{{example_text $ $name " "}}{{end}}{{end}}{{end}}{{/* --------------------------------------- diff --git a/godoc/static/static.go b/godoc/static/static.go index 87447382..42dfa073 100644 --- a/godoc/static/static.go +++ b/godoc/static/static.go @@ -1869,7 +1869,7 @@ package {{.Name}} */}}{{if .Vars}}{{range .Vars}}{{node $ .Decl}} {{comment_text .Doc " " "\t"}} -{{example_text $ .Name " "}}{{end}}{{end}}{{/* +{{range $name := .Names}}{{example_text $ $name " "}}{{end}}{{end}}{{end}}{{/* ---------------------------------------