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

Commit 2787bd7

Browse files
committed
Fix typo and documentation of NewDecoderForType
Signed-off-by: Javi Fontan <jfontan@gmail.com>
1 parent 962eeb3 commit 2787bd7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plumbing/format/packfile/decoder.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ func NewDecoder(s *Scanner, o storer.EncodedObjectStorer) (*Decoder, error) {
8989
// the specified one, nil will be returned. This is intended to avoid the content
9090
// deserialization of all the objects.
9191
//
92-
// cacheObject is an ObjectLRU that is used to speed up the process. If cache
93-
// is not needed you can pass nil. To create a cache object with the default
94-
// size you an use the helper cache.ObjectLRUDefault().
92+
// cacheObject is a cache.Object implementation that is used to speed up the
93+
// process. If cache is not needed you can pass nil. To create an LRU cache
94+
// object with the default size you can use the helper cache.ObjectLRUDefault().
9595
func NewDecoderForType(s *Scanner, o storer.EncodedObjectStorer,
9696
t plumbing.ObjectType, cacheObject cache.Object) (*Decoder, error) {
9797

0 commit comments

Comments
 (0)