Skip to content

Commit 6eef0b4

Browse files
kostya-shadg
authored andcommitted
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 <[email protected]>
1 parent 3560419 commit 6eef0b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

godoc/static/package.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ <h2 id="{{$tname_html}}">type <a href="{{posLink_url $ .Decl}}">{{$tname_html}}<
200200
{{range .Funcs}}
201201
{{$name_html := html .Name}}
202202
<h3 id="{{$name_html}}">func <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a>
203-
<a class="permalink" href="#{{$tname_html}}">&#xb6;</a>
203+
<a class="permalink" href="#{{$name_html}}">&#xb6;</a>
204204
</h3>
205205
<pre>{{node_html $ .Decl true}}</pre>
206206
{{comment_html .Doc}}

godoc/static/static.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)