This commit is contained in:
Andreas Rumpf 2021-06-10 09:25:51 +02:00 • committed by GitHub
commit 0a4858dc59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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`.