1
0
mirror of https://github.com/golang/go synced 2024-11-22 01:24:42 -07:00

bytes: fix typo and resolve to be less idiotic next time

R=bradfitz
CC=golang-dev
https://golang.org/cl/5340044
This commit is contained in:
Andrew Gerrand 2011-11-04 17:55:21 +11:00
parent 1a4402a1fe
commit ed92549071

View 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
}