-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools/cmd/godoc: HTML formatting doesn't make association between comments and code clear #16728
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
Comments
Hmm. I now see that that's just the way godoc does things. I was just confused by the paragraph in the context of the "Variables" section. It's not clear whether it documents what's above it (the errors), or the new context variables below it. Perhaps because neither the first errors section nor the new context section has a comment attached to them. |
/cc @broady |
CL https://golang.org/cl/32153 mentions this issue. |
CL https://golang.org/cl/32154 mentions this issue. |
CL https://golang.org/cl/33279 mentions this issue. |
The existing implementation shows a comment after its code block. This causes confusion regarding how the comment relates to a code block. Comments have been moved before their relative code blocks. Fixes golang/go#16728 Change-Id: Ie07a6dd2f340a2555513662f263d26377060f93b Reviewed-on: https://go-review.googlesource.com/33279 Reviewed-by: Alan Donovan <adonovan@google.com>
The text was updated successfully, but these errors were encountered: