Skip to content

Commit

Permalink
Fix some comments (#2983)
Browse files Browse the repository at this point in the history
Signed-off-by: dockercui <dockercui@aliyun.com>
  • Loading branch information
dockercui committed Apr 24, 2024
1 parent 077968a commit 3a0313d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/hooks.go
Expand Up @@ -289,7 +289,7 @@ func parserRequestBodyFile(req *Request) error {
return nil
}

// parserResponseHeader will parse the response header and store it in the response
// parserResponseCookie will parse the response header and store it in the response
func parserResponseCookie(c *Client, resp *Response, req *Request) error {
var err error
resp.RawResponse.Header.VisitAllCookie(func(key, value []byte) {
Expand Down
2 changes: 1 addition & 1 deletion middleware/earlydata/earlydata.go
Expand Up @@ -12,7 +12,7 @@ const (
localsKeyAllowed contextKey = 0 // earlydata_allowed
)

// IsEarlyData returns true if the request is an early-data request
// IsEarly returns true if the request is an early-data request
func IsEarly(c fiber.Ctx) bool {
return c.Locals(localsKeyAllowed) != nil
}
Expand Down
2 changes: 1 addition & 1 deletion path.go
Expand Up @@ -427,7 +427,7 @@ func findNextCharsetPosition(search string, charset []byte) int {
return nextPosition
}

// findNextCharsetPosition search the last char position from the charset
// findLastCharsetPosition search the last char position from the charset
func findLastCharsetPosition(search string, charset []byte) int {
lastPosition := -1
for _, char := range charset {
Expand Down

0 comments on commit 3a0313d

Please sign in to comment.