diff options
Diffstat (limited to 'src/cmd/link/internal/ld/ld.go')
-rw-r--r-- | src/cmd/link/internal/ld/ld.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/link/internal/ld/ld.go b/src/cmd/link/internal/ld/ld.go index 9bbc94faa6..9789256251 100644 --- a/src/cmd/link/internal/ld/ld.go +++ b/src/cmd/link/internal/ld/ld.go @@ -60,13 +60,13 @@ func (ctxt *Link) readImportCfg(file string) { } var verb, args string - if i := strings.Index(line, " "); i < 0 { + if i := strings.IndexByte(line, ' '); i < 0 { verb = line } else { verb, args = line[:i], strings.TrimSpace(line[i+1:]) } var before, after string - if i := strings.Index(args, "="); i >= 0 { + if i := strings.IndexByte(args, '='); i >= 0 { before, after = args[:i], args[i+1:] } switch verb { |