Skip to content
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

x/pkgsite: Examples render teardown code #40517

Closed
deanishe opened this issue Jul 31, 2020 · 2 comments
Closed

x/pkgsite: Examples render teardown code #40517

deanishe opened this issue Jul 31, 2020 · 2 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. pkgsite
Milestone

Comments

@deanishe
Copy link

What is the URL of the page with the issue?

https://pkg.go.dev/github.com/deanishe/awgo?tab=doc#example-Config.To

What is your user agent?

Firefox

Screenshot

go-pkg

godoc.org

godoc

What did you do?

Add teardown code to an example after the // Output: stanza.

What did you expect to see?

No teardown code (i.e. godoc.org behaviour).

What did you see instead?

Teardown code. As it's presented as part of the example body, and not after the test output as it actually appears in the source code, I believe it may confuse readers.

@gopherbot gopherbot added this to the Unreleased milestone Jul 31, 2020
@cagedmantis
Copy link
Contributor

/cc @julieqiu

@cagedmantis cagedmantis added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Jul 31, 2020
@jba jba self-assigned this Aug 3, 2020
@gopherbot
Copy link

Change https://golang.org/cl/246241 mentions this issue: internal/fetch/dochtml/internal/render: drop example cleanup code

@golang golang locked and limited conversation to collaborators Aug 3, 2021
@rsc rsc unassigned jba Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. pkgsite
Projects
None yet
Development

No branches or pull requests

4 participants