mirror of https://github.com/golang/go.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
This commit is contained in:
parent
e7b125fc65
commit
9ec0f30a25
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue