aboutsummaryrefslogtreecommitdiff
path: root/src/unicode
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/unicode
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/unicode')
-rw-r--r--src/unicode/maketables.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unicode/maketables.go b/src/unicode/maketables.go
index dcfd471b05..9a92a0130a 100644
--- a/src/unicode/maketables.go
+++ b/src/unicode/maketables.go
@@ -680,7 +680,7 @@ func verifyRange(name string, inCategory Op, table *unicode.RangeTable) {
}
func parseScript(line string, scripts map[string][]Script) {
- comment := strings.IndexByte(line, '#')
+ comment := strings.Index(line, "#")
if comment >= 0 {
line = line[0:comment]
}