From b495e5c538d73b8cf0be99960c44d3ab9650ddee Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Mon, 27 Feb 2012 12:22:10 -0800 Subject: [PATCH] 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 --- src/pkg/strings/example_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pkg/strings/example_test.go b/src/pkg/strings/example_test.go index 0b583411331..daeb85ef6bb 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