diff --git a/src/strings/example_test.go b/src/strings/example_test.go index 85b182adcc8..e31054a4e0b 100644 --- a/src/strings/example_test.go +++ b/src/strings/example_test.go @@ -199,8 +199,10 @@ func ExampleRepeat() { func ExampleReplace() { fmt.Println(strings.Replace("oink oink oink", "k", "ky", 2)) + fmt.Println(strings.Replace("oink oink oink", "oink", "moo", -1)) // Output: // oinky oinky oink + // moo moo moo } func ExampleReplaceAll() {