aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing
diff options
context:
space:
mode:
authorJavi Fontan <jfontan@gmail.com>2017-12-20 15:58:25 +0100
committerJavi Fontan <jfontan@gmail.com>2017-12-20 15:58:25 +0100
commit2787bd71e6564e21cf225971376ba9b62b6d451b (patch)
tree027ee456d9695d8a1c44c7d0e81c9149281f68f3 /plumbing
parent962eeb399ce322daa4dd6522cdc91d277fbdba2c (diff)
downloadgo-git-2787bd71e6564e21cf225971376ba9b62b6d451b.tar.gz
Fix typo and documentation of NewDecoderForType
Signed-off-by: Javi Fontan <jfontan@gmail.com>
Diffstat (limited to 'plumbing')
-rw-r--r--plumbing/format/packfile/decoder.go6
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) {