Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Jul 23, 2024
1 parent 2115e18 commit 71b1d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hcloud/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ type ErrorDetailsInvalidInputField struct {
Messages []string
}

// IsError returns whether err is an API error with the given error code.
// IsError returns whether err is an API error with on of the given error codes.
func IsError(err error, code ...ErrorCode) bool {
var apiErr Error
ok := errors.As(err, &apiErr)
Expand Down

0 comments on commit 71b1d91

Please sign in to comment.