Codebase list golang-github-valyala-bytebufferpool-upstream / 8ebd047
Added missing dots in documentation Aliaksandr Valialkin 7 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
8383 return nil
8484 }
8585
86 // WriteString appends s to ByteBuffer.B
86 // WriteString appends s to ByteBuffer.B.
8787 func (b *ByteBuffer) WriteString(s string) (int, error) {
8888 b.B = append(b.B, s...)
8989 return len(s), nil
9090 }
9191
92 // Set sets ByteBuffer.B to p
92 // Set sets ByteBuffer.B to p.
9393 func (b *ByteBuffer) Set(p []byte) {
9494 b.B = append(b.B[:0], p...)
9595 }
9696
97 // SetString sets ByteBuffer.B to s
97 // SetString sets ByteBuffer.B to s.
9898 func (b *ByteBuffer) SetString(s string) {
9999 b.B = append(b.B[:0], s...)
100100 }
101101
102 // String returns string representation of ByteBuffer.B
102 // String returns string representation of ByteBuffer.B.
103103 func (b *ByteBuffer) String() string {
104104 return string(b.B)
105105 }