diff options
| author | Robert Griesemer <gri@golang.org> | 2012-02-27 12:22:10 -0800 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2012-02-27 12:22:10 -0800 |
| commit | b495e5c538d73b8cf0be99960c44d3ab9650ddee (patch) | |
| tree | 4c8965a26157a7dac5a97feffa3bdf1dc2c96799 /src/pkg/strings | |
| parent | ab169c6e3f3acfdf9e9176968825d398820f40f1 (diff) | |
| download | go-b495e5c538d73b8cf0be99960c44d3ab9650ddee.tar.xz | |
strings: make Count example show results
Thanks to dr.volker.dobler for tracking this down.
Filed a long-term issue (3142) which may eventually
resolve this problem w/o the need for a manual fix.
R=iant
CC=golang-dev
https://golang.org/cl/5698078
Diffstat (limited to 'src/pkg/strings')
| -rw-r--r-- | src/pkg/strings/example_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/strings/example_test.go b/src/pkg/strings/example_test.go index 0b58341133..daeb85ef6b 100644 --- a/src/pkg/strings/example_test.go +++ b/src/pkg/strings/example_test.go @@ -41,6 +41,7 @@ func ExampleContainsAny() { func ExampleCount() { fmt.Println(strings.Count("cheese", "e")) fmt.Println(strings.Count("five", "")) // before & after each rune + // Output: // 3 // 5 |
