testing: Example fails with correct output. #5196
Closed
Labels
Comments
If you write your example function using a space after the "//" comments (as is the common convention), it works fine: func ExampleTable() { Table() // Output: // 1 // 10 // 100 // 1000 } I think this is a bad interaction with the go parser's comment parsing code and your comment style. Changing the comment style fixes it. I'm not sure whether we should take this further. Status changed to Thinking. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by soniakeys:
The text was updated successfully, but these errors were encountered: