diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-01-30 16:13:56 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2017-01-30 16:13:56 +0100 |
commit | 35378e7db9288e8244f2634a1b47981606731cef (patch) | |
tree | 65936a6a365263c93e4b57c3b67aad6a13489e68 /cache | |
parent | 45669655f026a31577f938ee70ae613c2e4af184 (diff) | |
parent | a48bc6e17ef6298f93ec21cdf1a5e387640673b6 (diff) | |
download | go-git-35378e7db9288e8244f2634a1b47981606731cef.tar.gz |
example: using new constructors
Diffstat (limited to 'cache')
-rw-r--r-- | cache/object.go | 4 |
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) |