diff --git a/internal/search/binary.go b/internal/search/binary.go index b3d5ed6..9e7997c 100644 --- a/internal/search/binary.go +++ b/internal/search/binary.go @@ -32,7 +32,7 @@ type BinaryTree[Key cmp.Ordered] struct { func NewBinaryTree[Key cmp.Ordered](capacity int) (bst *BinaryTree[Key]) { tree := make(Binary[Key], 1, capacity) - bst = &BinaryTree[Key]{ Binary: &tree } + bst = &BinaryTree[Key]{ Binary: &tree, least: 0, greatest: 0, lastNode: 0 } return }