x/pkgsite: comments in example code are not visible #40710
Closed
Labels
Milestone
Comments
Change https://golang.org/cl/248997 mentions this issue: |
gopherbot
pushed a commit
to golang/pkgsite
that referenced
this issue
Aug 18, 2020
Change current render implementation of example code to display comments. before: https://i.imgur.com/vQYHEn6.png after: https://i.imgur.com/wS5maVS.png Updates golang/go#40710 Change-Id: I51fafbc49cc753179bdca997f1ea4df2f17127b5 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/248997 Reviewed-by: Julie Qiu <julie@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com>
Fixed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sometimes, adding comments to the examples can help illustrate how a package works.
While godoc.org shows comments in the example code, pkg.go.dev does not (example code in pkg.go.dev) for the same package.
I do not know if this is intended behavior, or if comments in examples should be avoided.
Thank you
The text was updated successfully, but these errors were encountered: