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

pkg.go.dev: Comments in examples are not always preserved #40726

Closed
divjotarora opened this issue Aug 12, 2020 · 1 comment
Closed

pkg.go.dev: Comments in examples are not always preserved #40726

divjotarora opened this issue Aug 12, 2020 · 1 comment

Comments

@divjotarora
Copy link

@divjotarora divjotarora commented Aug 12, 2020

What version of Go are you using (go version)?

$ go version
go1.14.4

What did you do?

I compared this example on pkg.go.dev, with the source code.

What did you expect to see?

I expected to see the comments in the source code present in the example as well. The same example on GoDoc has all of the expected comments.

What did you see instead?

The example on pkg.go.dev only has the first comment, which is also the only comment that's on the same line as other code. The rest of the comments in the source code are on separate lines.

@jamalc
Copy link
Member

@jamalc jamalc commented Aug 12, 2020

Duplicate of #40710

@jamalc jamalc marked this as a duplicate of #40710 Aug 12, 2020
@jamalc jamalc closed this Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.