summaryrefslogtreecommitdiff
path: root/search/bst.go
diff options
context:
space:
mode:
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