Merge pull request #35347 from lioncruise/patch-1

Fix grammatical problems in several annotations
This commit is contained in:
Yong Tang 2017-10-31 15:25:27 -07:00 committed by GitHub
commit 100ec844cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -25,7 +25,7 @@ func getImplementer(err error) error {
} }
} }
// IsNotFound returns if the passed in error is a ErrNotFound // IsNotFound returns if the passed in error is an ErrNotFound
func IsNotFound(err error) bool { func IsNotFound(err error) bool {
_, ok := getImplementer(err).(ErrNotFound) _, ok := getImplementer(err).(ErrNotFound)
return ok return ok
@ -37,7 +37,7 @@ func IsInvalidParameter(err error) bool {
return ok return ok
} }
// IsConflict returns if the passed in error is a ErrConflict // IsConflict returns if the passed in error is an ErrConflict
func IsConflict(err error) bool { func IsConflict(err error) bool {
_, ok := getImplementer(err).(ErrConflict) _, ok := getImplementer(err).(ErrConflict)
return ok return ok
@ -55,13 +55,13 @@ func IsUnavailable(err error) bool {
return ok return ok
} }
// IsForbidden returns if the passed in error is a ErrForbidden // IsForbidden returns if the passed in error is an ErrForbidden
func IsForbidden(err error) bool { func IsForbidden(err error) bool {
_, ok := getImplementer(err).(ErrForbidden) _, ok := getImplementer(err).(ErrForbidden)
return ok return ok
} }
// IsSystem returns if the passed in error is a ErrSystem // IsSystem returns if the passed in error is an ErrSystem
func IsSystem(err error) bool { func IsSystem(err error) bool {
_, ok := getImplementer(err).(ErrSystem) _, ok := getImplementer(err).(ErrSystem)
return ok return ok
@ -73,7 +73,7 @@ func IsNotModified(err error) bool {
return ok return ok
} }
// IsNotImplemented returns if the passed in error is a ErrNotImplemented // IsNotImplemented returns if the passed in error is an ErrNotImplemented
func IsNotImplemented(err error) bool { func IsNotImplemented(err error) bool {
_, ok := getImplementer(err).(ErrNotImplemented) _, ok := getImplementer(err).(ErrNotImplemented)
return ok return ok