Merge pull request #25019 from 0zAND1z/patch-2

Update hashcode.go
This commit is contained in:
Pam Selle 2020-08-28 12:46:37 -04:00 committed by GitHub
commit 8163c9771a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ import (
// String hashes a string to a unique hashcode.
//
// crc32 returns a uint32, but for our use we need
// and non negative integer. Here we cast to an integer
// a non negative integer. Here we cast to an integer
// and invert it if the result is negative.
func String(s string) int {
v := int(crc32.ChecksumIEEE([]byte(s)))