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
cmd/go: inconsistency about no text after "Output:" in examples #18191
Comments
Changing the docs is fine now, but if you want to change the behavior, this has to wait for 1.9 at this point. |
What is the current behavior you see? Our standard bug report template has a section "What did you expect to see?" and "What did you see instead?". If you're not going to use the template, at least include all the relevant information. |
It's hard to describe to me because I'm not sure whether the behavior must be the same and what's the expected behavior by the original author. The observable things are the following:
|
Examples with no
Examples with no text after
is compiled and executed, both on Note that rsc asked for an example with no text after It looks like it's the documentation that is outdated(?). We actually want to run Examples with no text after The issue was fixed in https://codereview.appspot.com/7071050 but the author forgot to update the documentation. |
Nice, thanks for the investigation, @ALTree. |
I sent https://golang.org/cl/34512 (for 1.8 or 1.9, you decide). |
CL https://golang.org/cl/34512 mentions this issue. |
go doc cmd/go
says thatAn example with no such comment, or with no text after "Output:" is compiled but not executed
but the current implementation behaves differently. Also the testing package never mentions the behavior. It might be better to clarify what's the correct behavior.The text was updated successfully, but these errors were encountered: