summaryrefslogtreecommitdiff
path: root/src/os/env_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/env_test.go')
-rw-r--r--src/os/env_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/env_test.go b/src/os/env_test.go
index e5749f0e89..d51097e20d 100644
--- a/src/os/env_test.go
+++ b/src/os/env_test.go
@@ -104,7 +104,7 @@ func TestClearenv(t *testing.T) {
for _, pair := range origEnv {
// Environment variables on Windows can begin with =
// http://blogs.msdn.com/b/oldnewthing/archive/2010/05/06/10008132.aspx
- i := strings.Index(pair[1:], "=") + 1
+ i := strings.IndexByte(pair[1:], '=') + 1
if err := Setenv(pair[:i], pair[i+1:]); err != nil {
t.Errorf("Setenv(%q, %q) failed during reset: %v", pair[:i], pair[i+1:], err)
}