Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 4e53c11

Browse files
Serabemcuadros
authored andcommitted
Fix typos in cache pkg (#235)
1 parent bb36105 commit 4e53c11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cache/object.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ func (c *ObjectFIFO) Add(o plumbing.EncodedObject) {
5454
c.actualSize += o.Size()
5555
}
5656

57-
// Get returns an object by his hash. If the object is not into the cache, it
57+
// Get returns an object by his hash. If the object is not found in the cache, it
5858
// returns nil
5959
func (c *ObjectFIFO) Get(k plumbing.Hash) plumbing.EncodedObject {
6060
return c.objects[k]
6161
}
6262

63-
// Clear the content of this cache object
63+
// Clear the content of this object cache
6464
func (c *ObjectFIFO) Clear() {
6565
c.objects = make(map[plumbing.Hash]plumbing.EncodedObject)
6666
c.order = newQueue(initialQueueSize)

0 commit comments

Comments
 (0)