docs: naming of subtable.location was outdated
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user