mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Update hashcode.go
Updating the comment `we need and non negative integer` to `we need a non negative integer`
This commit is contained in:
parent
df39e0a806
commit
ae717e6175
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user