diff options
| author | Brad Fitzpatrick <bradfitz@golang.org> | 2013-08-05 16:27:24 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2013-08-05 16:27:24 -0700 |
| commit | d8e27db39562d2106f0c9cf7518eaa9ade748a4f (patch) | |
| tree | a351ba05c9845f850854c3f7316a91589a4099de /src/pkg/path | |
| parent | 4c772cda54896b0213b5eaffed81031e259f26d4 (diff) | |
| download | go-d8e27db39562d2106f0c9cf7518eaa9ade748a4f.tar.xz | |
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
Diffstat (limited to 'src/pkg/path')
| -rw-r--r-- | src/pkg/path/match.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/path/match.go b/src/pkg/path/match.go index d811303500..8154bf6025 100644 --- a/src/pkg/path/match.go +++ b/src/pkg/path/match.go @@ -43,7 +43,7 @@ Pattern: star, chunk, pattern = scanChunk(pattern) if star && chunk == "" { // Trailing * matches rest of string unless it has a /. - return strings.IndexByte(name, '/') < 0, nil + return strings.Index(name, "/") < 0, nil } // Look for match at current position. t, ok, err := matchChunk(chunk, name) |
