From 2787bd71e6564e21cf225971376ba9b62b6d451b Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Wed, 20 Dec 2017 15:58:25 +0100 Subject: Fix typo and documentation of NewDecoderForType Signed-off-by: Javi Fontan --- plumbing/format/packfile/decoder.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plumbing') diff --git a/plumbing/format/packfile/decoder.go b/plumbing/format/packfile/decoder.go index 24493ec..dc39bf1 100644 --- a/plumbing/format/packfile/decoder.go +++ b/plumbing/format/packfile/decoder.go @@ -89,9 +89,9 @@ func NewDecoder(s *Scanner, o storer.EncodedObjectStorer) (*Decoder, error) { // the specified one, nil will be returned. This is intended to avoid the content // deserialization of all the objects. // -// cacheObject is an ObjectLRU that is used to speed up the process. If cache -// is not needed you can pass nil. To create a cache object with the default -// size you an use the helper cache.ObjectLRUDefault(). +// cacheObject is a cache.Object implementation that is used to speed up the +// process. If cache is not needed you can pass nil. To create an LRU cache +// object with the default size you can use the helper cache.ObjectLRUDefault(). func NewDecoderForType(s *Scanner, o storer.EncodedObjectStorer, t plumbing.ObjectType, cacheObject cache.Object) (*Decoder, error) { -- cgit