doc: correct docstring for generate hash

This commit is contained in:
Bastien Riviere 2024-01-29 21:39:27 +01:00
parent a3dc0b646b
commit ea265a75e4
Signed by: babariviere
GPG key ID: 4E5F0839249F162E

View file

@ -5,7 +5,7 @@ import (
"strings"
)
// GenerateHash hash the `url` param into a 8 characters base62 using fnv algorithm.
// GenerateHash hash the `url` param into a base62 string using fnv algorithm.
func GenerateHash(url string) (string, error) {
hasher := fnv.New32a()
_, err := hasher.Write([]byte(url))