Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
lindsaygelle committed Oct 18, 2023
1 parent 2f51b4a commit 6f1de91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hashtable.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func (hashtable *Hashtable[K, V]) DeleteManyValues(values ...V) *Hashtable[K, V]
// ht.Add("banana", 3)
// deleted := ht.DeleteOK("apple") // true, "apple" key is successfully deleted
// notDeleted := ht.DeleteOK("grape") // true, "grape" key does not exist, deletion is considered successful
func (hashtable Hashtable[K, V]) DeleteOK(key K) bool {
func (hashtable *Hashtable[K, V]) DeleteOK(key K) bool {
return !hashtable.Delete(key).Has(key)
}

Expand Down

0 comments on commit 6f1de91

Please sign in to comment.