fix: Table.Drop() was not a pointer receiver

This commit is contained in:
2026-03-19 20:05:35 -04:00
parent c1314f8a3c
commit e2ba398a62

View File

@@ -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)