From: Andrew Gerrand Date: Fri, 4 Nov 2011 06:55:21 +0000 (+1100) Subject: bytes: fix typo and resolve to be less idiotic next time X-Git-Tag: weekly.2011-11-08~41 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ed925490710adedc36d1273cf7d01f3b8dd19946;p=gostls13.git bytes: fix typo and resolve to be less idiotic next time R=bradfitz CC=golang-dev https://golang.org/cl/5340044 --- 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 }