Skip to content

Commit

Permalink
chore: add comments to exported functions
Browse files Browse the repository at this point in the history
  • Loading branch information
f1zm0 committed Apr 20, 2023
1 parent 81bc1f4 commit 428e9ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/hashing/hashing.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package hashing

// HashFunction is a type alias for a function that takes a byte slice and returns a uint64.
type HashFunction func([]byte) uint64

// DJB2 is an implementation of the djb2 hash function. Ref: http://www.cse.yorku.ca/~oz/hash.html
func DJB2(s []byte) uint64 {
var hash uint64 = 5381
for _, c := range s {
Expand Down

0 comments on commit 428e9ba

Please sign in to comment.