aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2011-11-04 17:55:21 +1100
committerAndrew Gerrand <adg@golang.org>2011-11-04 17:55:21 +1100
commited925490710adedc36d1273cf7d01f3b8dd19946 (patch)
treea2dc844d2ffd5bf912a3a74911c72c41854ed2d7
parent1a4402a1feab4a8592986a3b3675a3261667e19c (diff)
downloadgo-ed925490710adedc36d1273cf7d01f3b8dd19946.tar.gz
go-ed925490710adedc36d1273cf7d01f3b8dd19946.zip
bytes: fix typo and resolve to be less idiotic next time
R=bradfitz CC=golang-dev https://golang.org/cl/5340044
-rw-r--r--src/pkg/bytes/bytes.go2
1 files changed, 1 insertions, 1 deletions
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
}