From c5cebf44ce8708a7b1090c826aee625d25dbfbdf Mon Sep 17 00:00:00 2001 From: Hongchao Deng Date: Wed, 13 Jan 2016 11:22:00 -0800 Subject: [PATCH] typo fix in watch_cache.go --- pkg/storage/watch_cache.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/storage/watch_cache.go b/pkg/storage/watch_cache.go index 196e35e0cb8..64d91f211b6 100644 --- a/pkg/storage/watch_cache.go +++ b/pkg/storage/watch_cache.go @@ -50,7 +50,7 @@ type watchCacheElement struct { // watchCache implements a Store interface. // However, it depends on the elements implementing runtime.Object interface. // -// watchCache is a "sliding window" (with a limitted capacity) of objects +// watchCache is a "sliding window" (with a limited capacity) of objects // observed from a watch. type watchCache struct { sync.RWMutex @@ -280,7 +280,7 @@ func (w *watchCache) GetAllEventsSinceThreadUnsafe(resourceVersion uint64) ([]wa return nil, errors.NewGone(fmt.Sprintf("too old resource version: %d (%d)", resourceVersion, oldest)) } - // Binary seatch the smallest index at which resourceVersion is not smaller than + // Binary search the smallest index at which resourceVersion is not smaller than // the given one. f := func(i int) bool { return w.cache[(w.startIndex+i)%w.capacity].resourceVersion >= resourceVersion