Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit 7237e57

Browse files
committed
fix doc
1 parent 51ba1e2 commit 7237e57

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

io/directory.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
ipld "github.com/ipfs/go-ipld-format"
1515
)
1616

17-
// UseHAMTSharding is a global option that allows switching to a HAMTDirectory
17+
// HAMTShardingSize is a global option that allows switching to a HAMTDirectory
1818
// when the BasicDirectory grows above the size (in bytes) signalled by this
1919
// flag. The default size of 0 disables the option.
2020
// The size is not the *exact* block size of the encoded BasicDirectory but just
@@ -108,10 +108,8 @@ func NewBasicDirectoryFromNode(dserv ipld.DAGService, node *mdag.ProtoNode) *Bas
108108
return basicDir
109109
}
110110

111-
// NewDirectory returns a Directory that can either be a HAMTDirectory if the
112-
// UseHAMTSharding is set, or otherwise an UpgradeableDirectory containing a
113-
// BasicDirectory that can be converted to a HAMTDirectory if the option is
114-
// set in the future.
111+
// NewDirectory returns a Directory implemented by UpgradeableDirectory
112+
// containing a BasicDirectory that can be converted to a HAMTDirectory.
115113
func NewDirectory(dserv ipld.DAGService) Directory {
116114
return &UpgradeableDirectory{NewEmptyBasicDirectory(dserv)}
117115
}

unixfs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ func EmptyDirNode() *dag.ProtoNode {
361361
return dag.NodeWithData(FolderPBData())
362362
}
363363

364-
// EmptyDirNode creates an empty folder Protonode.
364+
// EmptyFileNode creates an empty file Protonode.
365365
func EmptyFileNode() *dag.ProtoNode {
366366
return dag.NodeWithData(FilePBData(nil, 0))
367367
}

0 commit comments

Comments
 (0)