cmd/godoc: fix anchor links for constructors

Fixes golang/go#15866

Change-Id: I67f41026c64046ca581251fb0851d337d2651560
Reviewed-on: https://go-review.googlesource.com/23531
Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
Konstantin Shaposhnikov 2016-05-28 10:55:32 +08:00 committed by Andrew Gerrand
parent 3560419ce9
commit 6eef0b4fad
2 changed files with 2 additions and 2 deletions

View File

@ -200,7 +200,7 @@
{{range .Funcs}}
{{$name_html := html .Name}}
<h3 id="{{$name_html}}">func <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a>
<a class="permalink" href="#{{$tname_html}}">&#xb6;</a>
<a class="permalink" href="#{{$name_html}}">&#xb6;</a>
</h3>
<pre>{{node_html $ .Decl true}}</pre>
{{comment_html .Doc}}

View File

@ -1783,7 +1783,7 @@ function cgAddChild(tree, ul, cgn) {
{{range .Funcs}}
{{$name_html := html .Name}}
<h3 id="{{$name_html}}">func <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a>
<a class="permalink" href="#{{$tname_html}}">&#xb6;</a>
<a class="permalink" href="#{{$name_html}}">&#xb6;</a>
</h3>
<pre>{{node_html $ .Decl true}}</pre>
{{comment_html .Doc}}