Skip to content

Commit

Permalink
buffer: Fix AppendBytes doc string (#1362)
Browse files Browse the repository at this point in the history
Bad copy-paste; AppendBytes appends all the given bytes,
not just one byte.

Thanks to @makkes for catching this.
  • Loading branch information
abhinav committed Sep 18, 2023
1 parent 8a14570 commit 4ddf010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buffer/buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (b *Buffer) AppendByte(v byte) {
b.bs = append(b.bs, v)
}

// AppendBytes writes a single byte to the Buffer.
// AppendBytes writes the given slice of bytes to the Buffer.
func (b *Buffer) AppendBytes(v []byte) {
b.bs = append(b.bs, v...)
}
Expand Down

0 comments on commit 4ddf010

Please sign in to comment.