Merge pull request #68729 from TinySong/fix-client-go-typos

remove duplicated words in heap.go and interfaces.go

Kubernetes-commit: a641e1cba8c587aace2fd8bf012db3a15dd7a536
This commit is contained in:
Kubernetes Publisher 2018-09-25 22:58:03 -07:00
commit 4d3c94690f
2 changed files with 2 additions and 2 deletions

View File

@ -34,6 +34,6 @@ type ScaleInterface interface {
// Get fetches the scale of the given scalable resource.
Get(resource schema.GroupResource, name string) (*autoscalingapi.Scale, error)
// Update updates the scale of the the given scalable resource.
// Update updates the scale of the given scalable resource.
Update(resource schema.GroupResource, scale *autoscalingapi.Scale) (*autoscalingapi.Scale, error)
}

2
tools/cache/heap.go vendored
View File

@ -204,7 +204,7 @@ func (h *Heap) AddIfNotPresent(obj interface{}) error {
return nil
}
// addIfNotPresentLocked assumes the lock is already held and adds the the provided
// addIfNotPresentLocked assumes the lock is already held and adds the provided
// item to the queue if it does not already exist.
func (h *Heap) addIfNotPresentLocked(key string, obj interface{}) {
if _, exists := h.data.items[key]; exists {