diff options
author | Billingsly Wetherfordshire <phowl.mouth@gmail.com> | 2013-05-04 19:26:02 -0500 |
---|---|---|
committer | Billingsly Wetherfordshire <phowl.mouth@gmail.com> | 2013-05-04 19:26:02 -0500 |
commit | cc887bf66e3df40babd29e89e45c71e2e3cca079 (patch) | |
tree | e4cb57adc7aabf470ec8bc1b4457c43b0c4156fc | |
parent | e662c973efdc1c9bcab6543713a742e6f54b34d3 (diff) | |
download | Nim-cc887bf66e3df40babd29e89e45c71e2e3cca079.tar.gz |
Change varargs[T] to openarray[T]
-rw-r--r-- | lib/pure/hashes.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/hashes.nim b/lib/pure/hashes.nim index 92f273b15..8a3135f89 100644 --- a/lib/pure/hashes.nim +++ b/lib/pure/hashes.nim @@ -126,6 +126,6 @@ proc hash*(x: float): THash {.inline.} = var y = x + 1.0 result = cast[ptr THash](addr(y))[] -proc hash*[A](x: varargs[A]): THash = +proc hash*[A](x: openarray[A]): THash = for it in items(x): result = result !& hash(it) result = !$result |