-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools/cmd/godoc: comment listed before signature, not after #18150
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
Labels
Milestone
Comments
We only meant to do that for types, not for all things. |
Looks like it was semi-intentional: |
Semi. We wanted it for that case and types at least. But not funcs. |
Chris, you got this one? |
CL https://golang.org/cl/34332 mentions this issue. |
I was going to do it this afternoon but @griesemer beat me to it. |
henderjon
pushed a commit
to oggodoc/godoc
that referenced
this issue
Jun 13, 2024
This partially reverts https://go-review.googlesource.com/#/c/33279/ (which moved doc strings above the declaration for all kinds of objects) by moving the doc string for functions and methods below the signature where they traditionally were. Fixes golang/go#18150. Change-Id: Icbb9e7edcb3b34ad1d900acb3180217abdc56a16 Reviewed-on: https://go-review.googlesource.com/34332 Reviewed-by: Chris Broadfoot <cbro@golang.org>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Please answer these questions before submitting your issue. Thanks!
What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
godoc -http=127.0.0.1:6060
What did you expect to see?
Function signature located between title and description/comment as here: https://golang.org/pkg/net/http/#Server.ListenAndServe
What did you see instead?
Function signature listed after description.
Does this issue reproduce with the latest release (go1.7.3)?
No
System details
The text was updated successfully, but these errors were encountered: