aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/regexp/example_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regexp/example_test.go b/src/regexp/example_test.go
index d05e87b0db..8661d6d389 100644
--- a/src/regexp/example_test.go
+++ b/src/regexp/example_test.go
@@ -39,11 +39,11 @@ func ExampleMatchString() {
}
func ExampleRegexp_FindString() {
- re := regexp.MustCompile("fo.?")
- fmt.Printf("%q\n", re.FindString("seafood"))
+ re := regexp.MustCompile("foo.?")
+ fmt.Printf("%q\n", re.FindString("seafood fool"))
fmt.Printf("%q\n", re.FindString("meat"))
// Output:
- // "foo"
+ // "food"
// ""
}