From 4a135000ba9c23a588b960e5b2989710cc71e3e2 Mon Sep 17 00:00:00 2001 From: dupoxy Date: Wed, 12 Dec 2018 23:49:08 +0100 Subject: [PATCH] Update example_test.go --- src/strings/example_test.go | 2 ++ 1 file changed, 2 insertions(+) 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() {