undo CL 12486043 / ab644299d124

Uglier.

««« original CL description
all: use strings.IndexByte instead of Index where possible

R=golang-dev, khr
CC=golang-dev
https://golang.org/cl/12486043
»»»

R=golang-dev
CC=golang-dev
https://golang.org/cl/12485044
This commit is contained in:
Brad Fitzpatrick 2013-08-05 16:27:24 -07:00
parent 4c772cda54
commit d8e27db395
21 changed files with 36 additions and 36 deletions

View file

@ -293,7 +293,7 @@ func parseResult(t *testing.T, file string, lineno int, res string) []int {
out[n] = -1
out[n+1] = -1
} else {
k := strings.IndexByte(pair, '-')
k := strings.Index(pair, "-")
if k < 0 {
t.Fatalf("%s:%d: invalid pair %s", file, lineno, pair)
}
@ -456,7 +456,7 @@ Reading:
continue Reading
}
case ':':
i := strings.IndexByte(flag[1:], ':')
i := strings.Index(flag[1:], ":")
if i < 0 {
t.Logf("skip: %s", line)
continue Reading