From d191ad11aeb75959621777a9da17dcd8efdb6304 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Mon, 23 Jan 2012 16:08:05 -0800 Subject: [PATCH] lib/godoc: use Type.Name directly Also: remove an unused template variable declaration. R=adg CC=golang-dev https://golang.org/cl/5572043 --- lib/godoc/package.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/godoc/package.html b/lib/godoc/package.html index 5a7f3ef976..d84c1c1e7f 100644 --- a/lib/godoc/package.html +++ b/lib/godoc/package.html @@ -20,8 +20,7 @@
{{node_html .Decl $.FSet}}
{{end}} {{range .Types}} - {{$tname := printf "%s" .Type.Name}} - {{$tname_html := node_html .Type.Name $.FSet}} + {{$tname_html := html .Name}}
type {{$tname_html}}
{{range .Funcs}} {{$name_html := html .Name}} @@ -86,8 +85,8 @@ {{example_html .Name $.Examples $.FSet}} {{end}} {{range .Types}} - {{$tname := printf "%s" .Type.Name}} - {{$tname_html := node_html .Type.Name $.FSet}} + {{$tname := .Name}} + {{$tname_html := html .Name}}

type {{$tname_html}}

{{comment_html .Doc}}
{{node_html .Decl $.FSet}}
-- 2.50.0