Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: modify typo and remove repeated type conversions #1437

Merged
merged 1 commit into from Nov 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion bytesconv.go
Expand Up @@ -234,7 +234,7 @@ func ParseUfloat(buf []byte) (float64, error) {
if err != nil {
return -1, errInvalidFloatExponent
}
return float64(v) * offset * math.Pow10(minus*int(vv)), nil
return float64(v) * offset * math.Pow10(minus*vv), nil
}
return -1, errUnexpectedFloatChar
}
Expand Down
2 changes: 1 addition & 1 deletion header.go
Expand Up @@ -109,7 +109,7 @@ func (h *ResponseHeader) SetContentRange(startPos, endPos, contentLength int) {
h.setNonSpecial(strContentRange, h.bufKV.value)
}

// SetByteRange sets 'Range: bytes=startPos-endPos' header.
// SetByteRanges sets 'Range: bytes=startPos-endPos' header.
//
// - If startPos is negative, then 'bytes=-startPos' value is set.
// - If endPos is negative, then 'bytes=startPos-' value is set.
Expand Down
2 changes: 1 addition & 1 deletion server.go
Expand Up @@ -2103,7 +2103,7 @@ func (s *Server) serveConn(c net.Conn) (err error) {

connectionClose bool

continueReadingRequest bool = true
continueReadingRequest = true
)
for {
connRequestNum++
Expand Down