docs: replaced instances of "bucket" with "table"

- Removed instances of `growthFactor`, as it is unexported.
- Typo in `HashTable.String()`.
This commit is contained in:
2026-04-13 20:49:33 -04:00
parent 395a3560c7
commit 6a5b40c097
3 changed files with 6 additions and 6 deletions

View File

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