Skip to content

Commit 1ff5f1c

Browse files
authored
Merge pull request #189 from ebiiim/fixtypo
Fix: correct code comment
2 parents 84dc8cf + 2151f2a commit 1ff5f1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/provider/errors.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ func NewMetricNotFoundForError(resource schema.GroupResource, metricName string,
4949
}}
5050
}
5151

52-
// NewMetricNotFoundForError returns a StatusError indicating the given metric could not be found for
53-
// the given named object. It is similar to NewNotFound, but more specialized
52+
// NewMetricNotFoundForSelectorError returns a StatusError indicating the given metric could not be found for
53+
// the given named object and selector. It is similar to NewNotFound, but more specialized
5454
func NewMetricNotFoundForSelectorError(resource schema.GroupResource, metricName string, resourceName string, selector labels.Selector) *apierr.StatusError {
5555
return &apierr.StatusError{ErrStatus: metav1.Status{
5656
Status: metav1.StatusFailure,

0 commit comments

Comments
 (0)