go.tools/cmd/godoc/static: fix text template for variable examples.
Fixes golang/go#7771. LGTM=bgarcia R=golang-codereviews, bradfitz, bgarcia CC=golang-codereviews https://golang.org/cl/87180044
This commit is contained in:
parent
4bc2f4e34b
commit
35875c1a92
|
@ -61,7 +61,7 @@ package {{.Name}}
|
||||||
|
|
||||||
*/}}{{if .Vars}}{{range .Vars}}{{node $ .Decl}}
|
*/}}{{if .Vars}}{{range .Vars}}{{node $ .Decl}}
|
||||||
{{comment_text .Doc " " "\t"}}
|
{{comment_text .Doc " " "\t"}}
|
||||||
{{example_text $ .Name " "}}{{end}}{{end}}{{/*
|
{{range $name := .Names}}{{example_text $ $name " "}}{{end}}{{end}}{{end}}{{/*
|
||||||
|
|
||||||
---------------------------------------
|
---------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -1869,7 +1869,7 @@ package {{.Name}}
|
||||||
|
|
||||||
*/}}{{if .Vars}}{{range .Vars}}{{node $ .Decl}}
|
*/}}{{if .Vars}}{{range .Vars}}{{node $ .Decl}}
|
||||||
{{comment_text .Doc " " "\t"}}
|
{{comment_text .Doc " " "\t"}}
|
||||||
{{example_text $ .Name " "}}{{end}}{{end}}{{/*
|
{{range $name := .Names}}{{example_text $ $name " "}}{{end}}{{end}}{{end}}{{/*
|
||||||
|
|
||||||
---------------------------------------
|
---------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue