From 4e53c11a0889d2e2925145f8202107bfb53a16eb Mon Sep 17 00:00:00 2001 From: Sergio Arbeo Date: Mon, 30 Jan 2017 13:16:25 +0100 Subject: Fix typos in cache pkg (#235) --- cache/object.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cache/object.go') diff --git a/cache/object.go b/cache/object.go index d6cd49b..cd57030 100644 --- a/cache/object.go +++ b/cache/object.go @@ -54,13 +54,13 @@ func (c *ObjectFIFO) Add(o plumbing.EncodedObject) { c.actualSize += o.Size() } -// Get returns an object by his hash. If the object is not into the cache, it +// Get returns an object by his hash. If the object is not found in the cache, it // returns nil func (c *ObjectFIFO) Get(k plumbing.Hash) plumbing.EncodedObject { return c.objects[k] } -// Clear the content of this cache object +// Clear the content of this object cache func (c *ObjectFIFO) Clear() { c.objects = make(map[plumbing.Hash]plumbing.EncodedObject) c.order = newQueue(initialQueueSize) -- cgit