This commit is contained in:
Andreas Rumpf
2021-06-10 09:25:51 +02:00
committed by GitHub
parent 79ded694d7
commit 0a4858dc59

View File

@@ -509,7 +509,7 @@ proc hashIgnoreCase*(sBuf: string, sPos, ePos: int): Hash =
h = h !& ord(c)
result = !$h
proc hash*[T: tuple | object | proc](x: T): Hash {.inline.} =
proc hash*[T: tuple | object | proc](x: T): Hash =
## Efficient `hash` overload.
runnableExamples:
# for `tuple|object`, `hash` must be defined for each component of `x`.