x/pkgsite: Examples render teardown code #40517
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
pkgsite
Milestone
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
godoc.org
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.
The text was updated successfully, but these errors were encountered: