diff --git a/src/pkg/bytes/bytes.go b/src/pkg/bytes/bytes.go index f7f2f03cd7b..56306b0288f 100644 --- a/src/pkg/bytes/bytes.go +++ b/src/pkg/bytes/bytes.go @@ -89,7 +89,7 @@ func Count(s, sep []byte) int { } // Contains returns whether subslice is within b. -func Contains(b, subslice []string) bool { +func Contains(b, subslice []byte) bool { return Index(b, subslice) != -1 }