Skip to content

Commit

Permalink
rlp: document that zero value of EncoderBuffer is not valid
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl committed Feb 7, 2022
1 parent 322d291 commit 72069de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rlp/encbuffer.go
Expand Up @@ -249,6 +249,9 @@ func (r *encReader) next() []byte {
}

// EncoderBuffer is a buffer for incremental encoding.
//
// The zero value is NOT ready for use. To get a usable buffer,
// create it using NewEncoderBuffer or call Reset.
type EncoderBuffer struct {
buf *encBuffer
dst io.Writer
Expand Down

0 comments on commit 72069de

Please sign in to comment.