mirror of
https://github.com/golang/go
synced 2024-09-05 16:04:50 +00: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:
parent
1a4402a1fe
commit
ed92549071
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue