Skip to content

Commit 12e871f

Browse files
committed
Change occurrences of "block" to "group"
Keep naming consistent. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent ba13293 commit 12e871f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cobs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func NewEncoder(w io.Writer) *Encoder {
3939
e := new(Encoder)
4040

4141
e.w = w
42-
// Create a buffer with maximum capacity for a block
42+
// Create a buffer with maximum capacity for a group
4343
e.buf = make([]byte, 1, 255)
4444
e.buf[0] = 1
4545

@@ -61,7 +61,7 @@ func (e *Encoder) finish() error {
6161
// WriteByte encodes a single byte c. If a group is finished
6262
// it is written to w.
6363
func (e *Encoder) WriteByte(c byte) error {
64-
// Finish if block is full
64+
// Finish if group is full
6565
if e.buf[0] == 0xff {
6666
if err := e.finish(); err != nil {
6767
return err

0 commit comments

Comments
 (0)