From ed925490710adedc36d1273cf7d01f3b8dd19946 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Fri, 4 Nov 2011 17:55:21 +1100 Subject: [PATCH] bytes: fix typo and resolve to be less idiotic next time R=bradfitz CC=golang-dev https://golang.org/cl/5340044 --- src/pkg/bytes/bytes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/bytes/bytes.go b/src/pkg/bytes/bytes.go index f7f2f03cd7..56306b0288 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 } -- 2.50.0