Added missing dots in documentation
Aliaksandr Valialkin
7 years ago
83 | 83 | return nil |
84 | 84 | } |
85 | 85 | |
86 | // WriteString appends s to ByteBuffer.B | |
86 | // WriteString appends s to ByteBuffer.B. | |
87 | 87 | func (b *ByteBuffer) WriteString(s string) (int, error) { |
88 | 88 | b.B = append(b.B, s...) |
89 | 89 | return len(s), nil |
90 | 90 | } |
91 | 91 | |
92 | // Set sets ByteBuffer.B to p | |
92 | // Set sets ByteBuffer.B to p. | |
93 | 93 | func (b *ByteBuffer) Set(p []byte) { |
94 | 94 | b.B = append(b.B[:0], p...) |
95 | 95 | } |
96 | 96 | |
97 | // SetString sets ByteBuffer.B to s | |
97 | // SetString sets ByteBuffer.B to s. | |
98 | 98 | func (b *ByteBuffer) SetString(s string) { |
99 | 99 | b.B = append(b.B[:0], s...) |
100 | 100 | } |
101 | 101 | |
102 | // String returns string representation of ByteBuffer.B | |
102 | // String returns string representation of ByteBuffer.B. | |
103 | 103 | func (b *ByteBuffer) String() string { |
104 | 104 | return string(b.B) |
105 | 105 | } |