Commit 06e18ca5 authored by Volker Dobler's avatar Volker Dobler Committed by Andrew Gerrand

strings: Rename example to match function name.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5729065
parent 80cb47b7
...@@ -60,7 +60,7 @@ func ExampleIndex() { ...@@ -60,7 +60,7 @@ func ExampleIndex() {
// -1 // -1
} }
func ExampleRune() { func ExampleIndexRune() {
fmt.Println(strings.IndexRune("chicken", 'k')) fmt.Println(strings.IndexRune("chicken", 'k'))
fmt.Println(strings.IndexRune("chicken", 'd')) fmt.Println(strings.IndexRune("chicken", 'd'))
// Output: // Output:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment