summaryrefslogtreecommitdiff
path: root/src/pkg/bytes
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2013-08-24 17:05:27 -0500
committerBrad Fitzpatrick <bradfitz@golang.org>2013-08-24 17:05:27 -0500
commitf5e91edfd6f1161cef05a8b827ff69e4a36652a8 (patch)
tree5c534309e4b5f4b47a44472d57e87e5aff1c12a9 /src/pkg/bytes
parent450434250beca3f9896e871060bc5c1de1d0a510 (diff)
downloadgo-f5e91edfd6f1161cef05a8b827ff69e4a36652a8.tar.gz
bytes: clarify Equal docs
== isn't defined on slices, so don't use it in docs. R=golang-dev, iant CC=golang-dev https://codereview.appspot.com/12983045
Diffstat (limited to 'src/pkg/bytes')
-rw-r--r--src/pkg/bytes/bytes_decl.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pkg/bytes/bytes_decl.go b/src/pkg/bytes/bytes_decl.go
index 120d21a31..617d7489a 100644
--- a/src/pkg/bytes/bytes_decl.go
+++ b/src/pkg/bytes/bytes_decl.go
@@ -11,7 +11,8 @@ func IndexByte(s []byte, c byte) int // ../runtime/asm_$GOARCH.s
//go:noescape
-// Equal returns a boolean reporting whether a == b.
+// Equal returns a boolean reporting whether a and b
+// are the same length and contain the same bytes.
// A nil argument is equivalent to an empty slice.
func Equal(a, b []byte) bool // ../runtime/asm_$GOARCH.s