chore: fix function names in comment (#5478)

This commit is contained in:
clonefetch
2024-04-08 22:19:02 +08:00
committed by GitHub
parent 3e25ed1b11
commit 9e07a87fcb
5 changed files with 5 additions and 5 deletions

View File

@@ -262,7 +262,7 @@ func getMD5HashBase64(data []byte) string {
return base64.StdEncoding.EncodeToString(getMD5Sum(data))
}
// getSHA256Hash returns SHA-256 sum of given data.
// getSHA256Sum returns SHA-256 sum of given data.
func getSHA256Sum(data []byte) []byte {
hash := sha256.New()
hash.Write(data)