]> Cypherpunks repositories - gostls13.git/commitdiff
bytes: fix typo and resolve to be less idiotic next time
authorAndrew Gerrand <adg@golang.org>
Fri, 4 Nov 2011 06:55:21 +0000 (17:55 +1100)
committerAndrew Gerrand <adg@golang.org>
Fri, 4 Nov 2011 06:55:21 +0000 (17:55 +1100)
R=bradfitz
CC=golang-dev
https://golang.org/cl/5340044

src/pkg/bytes/bytes.go

index f7f2f03cd7bb348acca9d099c13113ab86731d54..56306b0288fc720f501335d0cc5805c8d54519b3 100644 (file)
@@ -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
 }