mirror of
https://github.com/kubernetes/client-go.git
synced 2025-08-16 06:23:16 +00:00
Fix typo in k8s.io/client-go/tools/cache/index.go
Kubernetes-commit: a0d3e6750ecbc67d017c2c67d0ff6f12e1b0c1f1
This commit is contained in:
parent
52092c3c67
commit
cd92d91e0f
2
tools/cache/index.go
vendored
2
tools/cache/index.go
vendored
@ -56,7 +56,7 @@ type Indexer interface {
|
|||||||
type IndexFunc func(obj interface{}) ([]string, error)
|
type IndexFunc func(obj interface{}) ([]string, error)
|
||||||
|
|
||||||
// IndexFuncToKeyFuncAdapter adapts an indexFunc to a keyFunc. This is only useful if your index function returns
|
// IndexFuncToKeyFuncAdapter adapts an indexFunc to a keyFunc. This is only useful if your index function returns
|
||||||
// unique values for every object. This is conversion can create errors when more than one key is found. You
|
// unique values for every object. This conversion can create errors when more than one key is found. You
|
||||||
// should prefer to make proper key and index functions.
|
// should prefer to make proper key and index functions.
|
||||||
func IndexFuncToKeyFuncAdapter(indexFunc IndexFunc) KeyFunc {
|
func IndexFuncToKeyFuncAdapter(indexFunc IndexFunc) KeyFunc {
|
||||||
return func(obj interface{}) (string, error) {
|
return func(obj interface{}) (string, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user