Reformat code

This commit is contained in:
世界 2025-09-15 18:12:47 +08:00
parent 558e1e0493
commit d79d3c88fd
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
8 changed files with 11 additions and 22 deletions

View file

@ -4,9 +4,7 @@ import (
"errors"
)
var (
// ErrTooManySegments is returned by Device.Read() when segmentation
// overflows the length of supplied buffers. This error should not cause
// reads to cease.
ErrTooManySegments = errors.New("too many segments")
)
// ErrTooManySegments is returned by Device.Read() when segmentation
// overflows the length of supplied buffers. This error should not cause
// reads to cease.
var ErrTooManySegments = errors.New("too many segments")