summaryrefslogtreecommitdiff
path: root/search/bst.go
diff options
context:
space:
mode:
authorPaul Buetow <git@mx.buetow.org>2020-12-05 09:53:43 +0000
committerPaul Buetow <git@mx.buetow.org>2020-12-05 09:53:43 +0000
commit7f95eddfcab75aea62810f8d122269c0d741e2cf (patch)
tree4f49593b765c527cb4e56017dedce69f06b43562 /search/bst.go
parent571c58a20097c5cd7ec666ecd24eb75e827a7b3f (diff)
more on redblack bst
Diffstat (limited to 'search/bst.go')
-rw-r--r--search/bst.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/search/bst.go b/search/bst.go
index 0eecb9e..b1d12bc 100644
--- a/search/bst.go
+++ b/search/bst.go
@@ -1,4 +1,4 @@
-package set
+package search
import "fmt"
@@ -44,7 +44,7 @@ func (t *BST) Empty() bool {
return t.root == nil
}
-func (t *BST) Set(key, val int) {
+func (t *BST) Put(key, val int) {
if t.Empty() {
t.root = &node{key, val, nil, nil}
return