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:
parent
3560419ce9
commit
6eef0b4fad
|
@ -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}}">¶</a>
|
||||
<a class="permalink" href="#{{$name_html}}">¶</a>
|
||||
</h3>
|
||||
<pre>{{node_html $ .Decl true}}</pre>
|
||||
{{comment_html .Doc}}
|
||||
|
|
|
@ -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}}">¶</a>
|
||||
<a class="permalink" href="#{{$name_html}}">¶</a>
|
||||
</h3>
|
||||
<pre>{{node_html $ .Decl true}}</pre>
|
||||
{{comment_html .Doc}}
|
||||
|
|
Loading…
Reference in New Issue