x/pkgsite: package level Example quotes entire file, not just function code #39727
What is the URL of the page with the issue?
What is your user agent?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15
What did you do?
Use a package level Example function in the godocs for a module.
What did you expect to see?
The example code and output for the Example function only rendered at the top of the package documentation page.
What did you see instead?
The "code" section of the example function contains the source of the entire file, not just the Example function.
The text was updated successfully, but these errors were encountered: