Skip to content

Commit 064912d

Browse files
authored
Merge pull request #945 from ipfs/fix/hamt-fanout-typo
fix: typo in HAMT error message
2 parents 364c504 + d995391 commit 064912d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipld/unixfs/hamt/hamt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ const maximumHamtWidth = 1 << 10 // FIXME: Spec this and decide of a correct val
779779

780780
func newChilder(ds ipld.DAGService, size int) (*childer, error) {
781781
if size > maximumHamtWidth {
782-
return nil, fmt.Errorf("hamt witdh (%d) exceed maximum allowed (%d)", size, maximumHamtWidth)
782+
return nil, fmt.Errorf("hamt width (%d) exceed maximum allowed (%d)", size, maximumHamtWidth)
783783
}
784784
bf, err := bitfield.NewBitfield(size)
785785
if err != nil {

0 commit comments

Comments
 (0)