File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import (
16
16
// nodes.
17
17
//
18
18
// The Bmap (bitmap) has the same number of bits as the "width" of the AMT
19
- // (bitWidth^2 ), where each bit in the bitmap indicates the presence (1) or
19
+ // (2^bitWidth ), where each bit in the bitmap indicates the presence (1) or
20
20
// absence (0) of a value or link to a child node. In this way, the serialized
21
21
// form, and in-memory form of a Node contains only the value or links present.
22
22
// There must be at least one value for height=0 nodes and at least one link for
@@ -31,8 +31,8 @@ import (
31
31
// values [Any]
32
32
// } representation tuple
33
33
//
34
- // Where bmap is strictly a byte array of length (bitWidth^2 )/8 and the links
35
- // and values arrays are between zero and the width of this AMT (bitWidth^2 ).
34
+ // Where bmap is strictly a byte array of length (2^bitWidth )/8 and the links
35
+ // and values arrays are between zero and the width of this AMT (2^bitWidth ).
36
36
// One of links or values arrays must contain zero elements and one must contain
37
37
// at least one element since a node is strictly either a leaf or a non-leaf.
38
38
type Node struct {
You can’t perform that action at this time.
0 commit comments