Skip to content

Commit 48b9a98

Browse files
committed
doc: add doc for generic interface
1 parent c2be692 commit 48b9a98

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hamt.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ const (
3232
UNMODIFIED = modified(false)
3333
)
3434

35+
// HamtValue is an interface that must be implemented by the values stored in
36+
// the HAMT. It is used to create new instances of the value type, to
37+
// compare values for equality and to handle serialization.
3538
type HamtValue[V any] interface {
3639
New() V
3740
Equals(V) bool

0 commit comments

Comments
 (0)