-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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
go/doc,x/pkgsite: [Context.Err]
not linked in rendered doc comments
#63679
Comments
Possibly related to #61394? |
[Context.Err]
not linked in rendered doc comments
see also #39963 |
I observed the similar in gopls's hover message. |
Thanks @seankhliao. If we see - https://pkg.go.dev/golang.org/x/mod@v0.12.0/zip#CheckDir - CheckedFiles.Err) is referred as a link in the doc. As Err is a method for CheckedFiles struct and its reference works. Where as [CheckedFiles.SizeError] is a field int struct, it's reference is not working and it has been discussed in #39963 (comment). Looks like @bcmills trying a fix for fields in struct - https://go-review.googlesource.com/c/go/+/510315/6/src/go/doc/doc.go. Here the situation is for interface methods. As we go with standards - https://go.dev/doc/comment#doclinks. We can try refer only the interface followed by method [context.Context].Err as interface doclinks work - (Example (https://cs.opensource.google/go/go/+/go1.21.3:src/bufio/bufio.go;l=215 , then this Read method can do so as well; see the [io.Reader] docs.) Any suggestions/feedback are appreciated. |
This comment was marked as resolved.
This comment was marked as resolved.
@mitar @hyangah Please do review if the fix looks ok - https://go-review.googlesource.com/c/go/+/540175 |
Change https://go.dev/cl/540175 mentions this issue: |
Looks like a duplicate of #62293 which also proposes a fix for this. |
Variables section has invalid links:
See
[Context.Err]
.The text was updated successfully, but these errors were encountered: