commit
8e24a11a31
1 changed files with 2 additions and 2 deletions
|
|
@ -115,8 +115,8 @@ proc hash*(x: char): Hash {.inline.} =
|
||||||
## efficient hashing of characters
|
## efficient hashing of characters
|
||||||
result = ord(x)
|
result = ord(x)
|
||||||
|
|
||||||
proc hash*[T: Ordinal](x: T): THash {.inline.} =
|
proc hash*[T: Ordinal](x: T): Hash {.inline.} =
|
||||||
## efficient hashing of other ordinal types (e.g. enums)
|
## efficient hashing of other ordinal types (e.g., enums)
|
||||||
result = ord(x)
|
result = ord(x)
|
||||||
|
|
||||||
proc hash*(x: string): Hash =
|
proc hash*(x: string): Hash =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue