fix: Table.Drop() was not a pointer receiver
This commit is contained in:
2
table.go
2
table.go
@@ -111,7 +111,7 @@ func (t *Table[K, V]) Put(key K, value V) (err error) {
|
|||||||
|
|
||||||
// Drop removes a value for a key in the table. Returns an error if its value
|
// Drop removes a value for a key in the table. Returns an error if its value
|
||||||
// cannot be removed.
|
// cannot be removed.
|
||||||
func (t Table[K, V]) Drop(key K) (err error) {
|
func (t *Table[K, V]) Drop(key K) (err error) {
|
||||||
t.bucketA.drop(key)
|
t.bucketA.drop(key)
|
||||||
t.bucketB.drop(key)
|
t.bucketB.drop(key)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user