diff --git a/bytebuffer.go b/bytebuffer.go index b827071..07a055a 100644 --- a/bytebuffer.go +++ b/bytebuffer.go @@ -84,23 +84,23 @@ func (b *ByteBuffer) WriteByte(c byte) error { return nil } -// WriteString appends s to ByteBuffer.B +// WriteString appends s to ByteBuffer.B. func (b *ByteBuffer) WriteString(s string) (int, error) { b.B = append(b.B, s...) return len(s), nil } -// Set sets ByteBuffer.B to p +// Set sets ByteBuffer.B to p. func (b *ByteBuffer) Set(p []byte) { b.B = append(b.B[:0], p...) } -// SetString sets ByteBuffer.B to s +// SetString sets ByteBuffer.B to s. func (b *ByteBuffer) SetString(s string) { b.B = append(b.B[:0], s...) } -// String returns string representation of ByteBuffer.B +// String returns string representation of ByteBuffer.B. func (b *ByteBuffer) String() string { return string(b.B) }