commit | 1cb3044c9fcd88e1557eca1bf35845a4108bc1db | [log] [tgz] |
---|---|---|
author | Dominik Honnef <dominik@honnef.co> | Fri Apr 01 03:49:43 2016 +0200 |
committer | Dave Cheney <dave@cheney.net> | Fri Apr 01 02:05:01 2016 +0000 |
tree | 0ab6a665c480df7fa978af784cb2bb702acdc27f | |
parent | 42d62946946eb0e6dc55fe76973c84eafd113154 [diff] [blame] |
all: use bytes.Equal, bytes.Contains and strings.Contains Change-Id: Iba82a5bd3846f7ab038cc10ec72ff6bcd2c0b484 Reviewed-on: https://go-review.googlesource.com/21377 Run-TryBot: Dave Cheney <dave@cheney.net> Reviewed-by: Dave Cheney <dave@cheney.net>
diff --git a/src/cmd/compile/internal/gc/global_test.go b/src/cmd/compile/internal/gc/global_test.go index 54d3ed1..f0139e7 100644 --- a/src/cmd/compile/internal/gc/global_test.go +++ b/src/cmd/compile/internal/gc/global_test.go
@@ -59,7 +59,7 @@ if err != nil { log.Fatalf("could not read target: %v", err) } - if bytes.Index(out, []byte("scanInt")) != -1 { + if bytes.Contains(out, []byte("scanInt")) { log.Fatalf("scanf code not removed from helloworld") } }