1
0
mirror of https://github.com/golang/go synced 2024-11-08 18:26:14 -07:00
go/src/cmd/link
Marvin Stenger f22ba1f247 all: prefer strings.IndexByte over strings.Index
strings.IndexByte was introduced in go1.2 and it can be used
effectively wherever the second argument to strings.Index is
exactly one byte long.

This avoids generating unnecessary string symbols and saves
a few calls to strings.Index.

Change-Id: I1ab5edb7c4ee9058084cfa57cbcc267c2597e793
Reviewed-on: https://go-review.googlesource.com/65930
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-09-25 17:35:41 +00:00
..
internal all: prefer strings.IndexByte over strings.Index 2017-09-25 17:35:41 +00:00
doc.go
dwarf_test.go
link_test.go
linkbig_test.go
main.go