1
0
mirror of https://github.com/golang/go synced 2024-11-23 06:30:06 -07:00

Update example_test.go

This commit is contained in:
dupoxy 2018-12-12 23:49:08 +01:00 committed by GitHub
parent b70745717a
commit 4a135000ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {