Skip to content

x/tools/godoc: wrong anchor links for type constructors #15866

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kostya-sh opened this issue May 28, 2016 · 1 comment
Closed

x/tools/godoc: wrong anchor links for type constructors #15866

kostya-sh opened this issue May 28, 2016 · 1 comment

Comments

@kostya-sh
Copy link
Contributor

#13748 added anchor links to functions, types and methods.

There is a small bug though. Anchor links for constructors link to the type instead of the func.

For example:

Anchor link for https://tip.golang.org/pkg/net/http/#NewRequest links to https://tip.golang.org/pkg/net/http/#Request

Anchor links for methods are correct (for example https://tip.golang.org/pkg/net/http/#Request.AddCookie)

@kostya-sh kostya-sh changed the title tools/godoc: wrong anchor links for type constructors x/tools/godoc: wrong anchor links for type constructors May 28, 2016
@gopherbot
Copy link
Contributor

CL https://golang.org/cl/23531 mentions this issue.

@golang golang locked and limited conversation to collaborators May 28, 2017
henderjon pushed a commit to oggodoc/godoc that referenced this issue Jun 13, 2024
Fixes golang/go#15866

Change-Id: I67f41026c64046ca581251fb0851d337d2651560
Reviewed-on: https://go-review.googlesource.com/23531
Reviewed-by: Andrew Gerrand <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants