Skip to content

Commit

Permalink
Merge pull request #381 from xqm32/patch-1
Browse files Browse the repository at this point in the history
Fix typo "hava" to "have"
  • Loading branch information
imroc committed Sep 3, 2024
2 parents 88a68fe + 9479f86 commit 7cb96a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions response.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func (r *Response) Into(v interface{}) error {
return r.Unmarshal(v)
}

// Bytes return the response body as []bytes that hava already been read, could be
// Bytes return the response body as []bytes that have already been read, could be
// nil if not read, the following cases are already read:
// 1. `Request.SetResult` or `Request.SetError` is called.
// 2. `Client.DisableAutoReadResponse` and `Request.DisableAutoReadResponse` is not
Expand All @@ -204,7 +204,7 @@ func (r *Response) Bytes() []byte {
return r.body
}

// String returns the response body as string that hava already been read, could be
// String returns the response body as string that have already been read, could be
// nil if not read, the following cases are already read:
// 1. `Request.SetResult` or `Request.SetError` is called.
// 2. `Client.DisableAutoReadResponse` and `Request.DisableAutoReadResponse` is not
Expand Down

0 comments on commit 7cb96a1

Please sign in to comment.