docs: replaced instances of "bucket" with "table"
- Removed instances of `growthFactor`, as it is unexported. - Typo in `HashTable.String()`.
This commit is contained in:
2
table.go
2
table.go
@@ -17,7 +17,7 @@ type table[K, V any] struct {
|
||||
compare EqualFunc[K]
|
||||
}
|
||||
|
||||
// location determines where in the bucket a certain key would be placed. If the
|
||||
// location determines where in the table a certain key would be placed. If the
|
||||
// capacity is 0, this will panic.
|
||||
func (t table[K, V]) location(key K) uint64 {
|
||||
return t.hash(key) % t.capacity
|
||||
|
||||
Reference in New Issue
Block a user