diff options
| author | Paul Buetow <git@mx.buetow.org> | 2020-12-05 09:53:43 +0000 |
|---|---|---|
| committer | Paul Buetow <git@mx.buetow.org> | 2020-12-05 09:53:43 +0000 |
| commit | 7f95eddfcab75aea62810f8d122269c0d741e2cf (patch) | |
| tree | 4f49593b765c527cb4e56017dedce69f06b43562 /search/bst.go | |
| parent | 571c58a20097c5cd7ec666ecd24eb75e827a7b3f (diff) | |
more on redblack bst
Diffstat (limited to 'search/bst.go')
| -rw-r--r-- | search/bst.go | 4 |
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 |
