Skip to content

Commit

Permalink
chore: make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Aug 16, 2024
1 parent 45c8945 commit 9871bde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helper/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func (w *Writer) Skip(n int) (int, error) {
}
return 0, io.EOF
}
n = min(n, len(b.buf[b.off:]))
n = minnum(n, len(b.buf[b.off:]))
b.off += n
if n > 0 {
b.lastRead = opRead
Expand Down Expand Up @@ -168,8 +168,8 @@ const (
opReadRune4 readOp = 4 // Read rune of size 4.
)

// min 返回两数最小值,该函数将被内联
func min[T int | int8 | uint8 | int16 | uint16 | int32 | uint32 | int64 | uint64](a, b T) T {
// minnum 返回两数最小值,该函数将被内联
func minnum[T int | int8 | uint8 | int16 | uint16 | int32 | uint32 | int64 | uint64](a, b T) T {
if a > b {
return b
}
Expand Down

0 comments on commit 9871bde

Please sign in to comment.