We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba13293 commit 12e871fCopy full SHA for 12e871f
cobs.go
@@ -39,7 +39,7 @@ func NewEncoder(w io.Writer) *Encoder {
39
e := new(Encoder)
40
41
e.w = w
42
- // Create a buffer with maximum capacity for a block
+ // Create a buffer with maximum capacity for a group
43
e.buf = make([]byte, 1, 255)
44
e.buf[0] = 1
45
@@ -61,7 +61,7 @@ func (e *Encoder) finish() error {
61
// WriteByte encodes a single byte c. If a group is finished
62
// it is written to w.
63
func (e *Encoder) WriteByte(c byte) error {
64
- // Finish if block is full
+ // Finish if group is full
65
if e.buf[0] == 0xff {
66
if err := e.finish(); err != nil {
67
return err
0 commit comments