aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/strings
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2012-02-27 12:22:10 -0800
committerRobert Griesemer <gri@golang.org>2012-02-27 12:22:10 -0800
commitb495e5c538d73b8cf0be99960c44d3ab9650ddee (patch)
tree4c8965a26157a7dac5a97feffa3bdf1dc2c96799 /src/pkg/strings
parentab169c6e3f3acfdf9e9176968825d398820f40f1 (diff)
downloadgo-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.go1
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