Skip to content

Commit

Permalink
add dots to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vpranckaitis committed Dec 18, 2020
1 parent c5a937a commit 9f900ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/x/net/http/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
xerrors "github.com/m3db/m3/src/x/errors"
)

// ErrorRewriteFn is a function for rewriting response error
// ErrorRewriteFn is a function for rewriting response error.
type ErrorRewriteFn func(error) error

var (
Expand Down Expand Up @@ -115,7 +115,7 @@ func WriteError(w http.ResponseWriter, err error, opts ...WriteErrorOption) {
}
}

// SetErrorRewriteFn sets error rewrite function
// SetErrorRewriteFn sets error rewrite function.
func SetErrorRewriteFn(f ErrorRewriteFn) ErrorRewriteFn {
_errorRewriteFnLock.Lock()
defer _errorRewriteFnLock.Unlock()
Expand All @@ -139,7 +139,7 @@ func getStatusCode(err error) int {
return http.StatusInternalServerError
}

// IsClientError returns true if this error would result in 4xx status code
// IsClientError returns true if this error would result in 4xx status code.
func IsClientError(err error) bool {
code := getStatusCode(err)
return code >= 400 && code < 500
Expand Down

0 comments on commit 9f900ae

Please sign in to comment.