Skip to content

Commit

Permalink
style: modify typo and remove repeated type conversions (#1437)
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jin-gou authored Nov 18, 2022
1 parent 8f43443 commit 7b3bf58
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bytesconv.go
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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

0 comments on commit 7b3bf58

Please sign in to comment.