doc: correct docstring for generate hash
This commit is contained in:
parent
a3dc0b646b
commit
ea265a75e4
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue