From: Brad Fitzpatrick Date: Sat, 24 Aug 2013 22:05:27 +0000 (-0500) Subject: bytes: clarify Equal docs X-Git-Tag: go1.2rc2~430 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9ec0f30a25dc2f2b106a30130bf6b97d2d20ef3f;p=gostls13.git bytes: clarify Equal docs == isn't defined on slices, so don't use it in docs. R=golang-dev, iant CC=golang-dev https://golang.org/cl/12983045 --- diff --git a/src/pkg/bytes/bytes_decl.go b/src/pkg/bytes/bytes_decl.go index 120d21a318..617d7489a6 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