Commit db179e4c authored by Mike Danese's avatar Mike Danese

Merge pull request #10346 from jhadvig/comment_fix

Fix NewNotFound method name in comments
parents 816586bc 7df1d332
...@@ -333,7 +333,7 @@ func NewGenericServerResponse(code int, verb, kind, name, serverMessage string, ...@@ -333,7 +333,7 @@ func NewGenericServerResponse(code int, verb, kind, name, serverMessage string,
}} }}
} }
// IsNotFound returns true if the specified error was created by NewNotFoundErr. // IsNotFound returns true if the specified error was created by NewNotFound.
func IsNotFound(err error) bool { func IsNotFound(err error) bool {
return reasonForError(err) == api.StatusReasonNotFound return reasonForError(err) == api.StatusReasonNotFound
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment