aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/api
diff options
context:
space:
mode:
authorMarvin Stenger <marvin.stenger94@gmail.com>2017-10-05 15:49:32 +0200
committerIan Lance Taylor <iant@golang.org>2017-10-05 23:19:10 +0000
commit90d71fe99e21b68e292327c966946f1706d66514 (patch)
tree1eb63d7ee1c5bf5be76b5a69364416603597f573 /src/cmd/api
parent7e31d9b9f7e8e4e72472cfcbd807b5672806635a (diff)
downloadgo-90d71fe99e21b68e292327c966946f1706d66514.tar.gz
go-90d71fe99e21b68e292327c966946f1706d66514.zip
all: revert "all: prefer strings.IndexByte over strings.Index"
This reverts https://golang.org/cl/65930. Fixes #22148 Change-Id: Ie0712621ed89c43bef94417fc32de9af77607760 Reviewed-on: https://go-review.googlesource.com/68430 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/cmd/api')
-rw-r--r--src/cmd/api/goapi.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/api/goapi.go b/src/cmd/api/goapi.go
index a47909b270..8cc78c01ed 100644
--- a/src/cmd/api/goapi.go
+++ b/src/cmd/api/goapi.go
@@ -189,7 +189,7 @@ func main() {
features = append(features, f)
continue
}
- comma := strings.IndexByte(f, ',')
+ comma := strings.Index(f, ",")
for cname := range cmap {
f2 := fmt.Sprintf("%s (%s)%s", f[:comma], cname, f[comma:])
features = append(features, f2)