diff options
author | reactormonk <hafnersimon@gmail.com> | 2015-07-06 00:02:36 -0500 |
---|---|---|
committer | reactormonk <hafnersimon@gmail.com> | 2015-07-06 00:02:36 -0500 |
commit | 8e24a11a319ce2b2ce66efe9cab23f103e071a1a (patch) | |
tree | b62af4b9ec532a40d3f06c8f617f3c8c00b6529d | |
parent | 9a8de7f3a3982e110e51951fe7425789670e0775 (diff) | |
parent | d0f2ce3ae8cd74b705f49db042035ea9d243ab90 (diff) | |
download | Nim-8e24a11a319ce2b2ce66efe9cab23f103e071a1a.tar.gz |
Merge pull request #3068 from apense/patch-11
THash -> Hash correction
-rw-r--r-- | lib/pure/hashes.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/hashes.nim b/lib/pure/hashes.nim index fdf0fdb0d..61c16129b 100644 --- a/lib/pure/hashes.nim +++ b/lib/pure/hashes.nim @@ -115,8 +115,8 @@ proc hash*(x: char): Hash {.inline.} = ## efficient hashing of characters result = ord(x) -proc hash*[T: Ordinal](x: T): THash {.inline.} = - ## efficient hashing of other ordinal types (e.g. enums) +proc hash*[T: Ordinal](x: T): Hash {.inline.} = + ## efficient hashing of other ordinal types (e.g., enums) result = ord(x) proc hash*(x: string): Hash = |