]> Cypherpunks repositories - gostls13.git/commitdiff
bytes: clarify Equal docs
authorBrad Fitzpatrick <bradfitz@golang.org>
Sat, 24 Aug 2013 22:05:27 +0000 (17:05 -0500)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 24 Aug 2013 22:05:27 +0000 (17:05 -0500)
== isn't defined on slices, so don't use it in docs.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/12983045

src/pkg/bytes/bytes_decl.go

index 120d21a318dcaf95b1e34d805d2d523378edd965..617d7489a6a835124748b5820a1fd6dcd2fdc6ca 100644 (file)
@@ -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