Skip to content

Commit

Permalink
fix: code format
Browse files Browse the repository at this point in the history
  • Loading branch information
guangzhixu committed Nov 8, 2024
1 parent ba2b075 commit 7cae068
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/resp/resp.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ type Writer struct {
b []byte
}

func NewWriter(cap int) *Writer {
return &Writer{make([]byte, 0, cap)}
func NewWriter(capacity int) *Writer {
return &Writer{make([]byte, 0, capacity)}
}

func (w *Writer) Bytes() []byte {
Expand Down

0 comments on commit 7cae068

Please sign in to comment.