<pre class="notranslate">strings shows this issue:

func ExampleCount() {
    fmt.Println(strings.Count("cheese", "e"))
    fmt.Println(strings.Count("five", "")) // before &amp; after each rune
    // Output:
    // 3
    // 5
}

The "before &amp; after each rune" hint why 5 is the answer belongs technically
to the example output comment group.  Thus go/doc does not recorgnise the
"Output:" because it is not on the first line and godoc will not show the
example output.

This could be fixed by eiher adding a blank line to the example or by
making go/doc aware of the "last statement may have a comment which does
not belong to the example output". 

As this might be a not uncommon issue for users writing examples it
might be worth fixing in go/doc (and not by a blank line in 
strings/example_test.go).  I've got a working fix but it is a bit
hacky.</pre>
<pre class="notranslate">What steps will reproduce the problem?
1. godoc -path=. bencode

What is the expected output?

Documentation for my package.

What do you see instead?

2011/12/22 15:17:31 open /home/joiner/src/go/src/pkg/bencode: no such file or directory

Which revision are you using?

b4e4cd40f394+ tip

Please provide any additional information below.

Patch attached.</pre>
<p dir="auto">Attachments:</p>
<ol dir="auto">
<li><a href="https://storage.googleapis.com/go-attachment/2605/0/godoc-paths-command-line-mode.patch" rel="nofollow">godoc-paths-command-line-mode.patch</a> (297 bytes)</li>
</ol>