mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 05:50:30 +00:00
THash -> Hash correction
This commit is contained in:
@@ -115,7 +115,7 @@ proc hash*(x: char): Hash {.inline.} =
|
||||
## efficient hashing of characters
|
||||
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)
|
||||
result = ord(x)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user