Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed Feb 11, 2022
1 parent 16d07f3 commit 1b35ba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func (d *Deferred) UnmarshalCBOR(br io.Reader) error {
return nil
}

// readByte returns the first byte from the reader or ErrUnexpectedEOF if no byte is available.
// readByte reads and returns the next byte from the buffer. If no byte is available, it returns error io.EOF.
func readByte(r io.Reader) (byte, error) {
// try to cast to a concrete type, it's much faster than casting to an
// interface.
Expand Down

0 comments on commit 1b35ba1

Please sign in to comment.