refactor: constructors, update docs
- NewCustomTable -> NewCustom - NewTableBy -> NewBy - NewTable -> New
This commit is contained in:
4
hash.go
4
hash.go
@@ -7,9 +7,9 @@ import (
|
||||
// A Hash function maps any data to a fixed-length value (in this case, a
|
||||
// [uint64]).
|
||||
//
|
||||
// It is used by the [Table] to evenly distribute values
|
||||
// It is used by the [HashTable] to evenly distribute values
|
||||
// amongst its slots. A good hash function is uniform, [chaotic], and
|
||||
// deterministic. [Table] uses [NewDefaultHash] by default, which is built on
|
||||
// deterministic. [HashTable] uses [NewDefaultHash] by default, which is built on
|
||||
// [maphash.Comparable].
|
||||
//
|
||||
// [chaotic]: https://en.wikipedia.org/wiki/Avalanche_effect
|
||||
|
||||
Reference in New Issue
Block a user