mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 11:42:33 +00:00
Change varargs[T] to openarray[T]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user