diff --git a/src/encoding/encoding.go b/src/encoding/encoding.go index 8f7bbe0b9c..1e7456c0f1 100644 --- a/src/encoding/encoding.go +++ b/src/encoding/encoding.go @@ -44,7 +44,7 @@ type BinaryAppender interface { // (allocating a larger slice if necessary) and returns the updated slice. // // Implementations must not retain b, nor mutate any bytes within b[:len(b)]. - AppendBinary([]byte) ([]byte, error) + AppendBinary(b []byte) ([]byte, error) } // TextMarshaler is the interface implemented by an object that can