diff options
author | Javi Fontan <jfontan@gmail.com> | 2017-12-20 15:58:25 +0100 |
---|---|---|
committer | Javi Fontan <jfontan@gmail.com> | 2017-12-20 15:58:25 +0100 |
commit | 2787bd71e6564e21cf225971376ba9b62b6d451b (patch) | |
tree | 027ee456d9695d8a1c44c7d0e81c9149281f68f3 /plumbing/format/packfile | |
parent | 962eeb399ce322daa4dd6522cdc91d277fbdba2c (diff) | |
download | go-git-2787bd71e6564e21cf225971376ba9b62b6d451b.tar.gz |
Fix typo and documentation of NewDecoderForType
Signed-off-by: Javi Fontan <jfontan@gmail.com>
Diffstat (limited to 'plumbing/format/packfile')
-rw-r--r-- | plumbing/format/packfile/decoder.go | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |