aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergio Arbeo <serabe@gmail.com>2017-01-30 13:16:25 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2017-01-30 13:16:25 +0100
commit4e53c11a0889d2e2925145f8202107bfb53a16eb (patch)
treed4cc8db96b9b21241346a4786116776254313177
parentbb36105c3d9f3d92306450f7679cd99fb20d4e40 (diff)
downloadgo-git-4e53c11a0889d2e2925145f8202107bfb53a16eb.tar.gz
Fix typos in cache pkg (#235)
-rw-r--r--cache/object.go4
1 files changed, 2 insertions, 2 deletions
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)