mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
4c772cda54
commit
d8e27db395
21 changed files with 36 additions and 36 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue