docs: naming of subtable.location was outdated

This commit is contained in:
2026-04-16 00:01:17 -04:00
parent 78f7d01d5f
commit fce6325454

View File

@@ -18,8 +18,8 @@ type subtable[K, V any] struct {
compare EqualFunc[K] compare EqualFunc[K]
} }
// location determines where in the bucket a certain key would be placed. If the // location determines where in the subtable a certain key would be placed. If
// capacity is 0, this will panic. // the capacity is 0, this will panic.
func (t *subtable[K, V]) location(key K) uint64 { func (t *subtable[K, V]) location(key K) uint64 {
return t.hash(key) % t.capacity return t.hash(key) % t.capacity
} }