godoc: fix local link for factory functions

- fix suggested by rodrigo.moraes

Fixes #1755.

R=rsc
CC=golang-dev
https://golang.org/cl/4977057
This commit is contained in:
Robert Griesemer 2011-09-08 10:37:26 -07:00
parent 7df4322114
commit 72dcab1c40

View file

@ -63,7 +63,7 @@
{{end}}
{{range .Factories}}
{{$name_html := html .Name}}
<h3 id="{{$tname_html}}.{{$name_html}}">func <a href="/{{posLink_url .Decl $.FSet}}">{{$name_html}}</a></h3>
<h3 id="{{$name_html}}">func <a href="/{{posLink_url .Decl $.FSet}}">{{$name_html}}</a></h3>
<p><code>{{node_html .Decl $.FSet}}</code></p>
{{comment_html .Doc}}
{{end}}