From 4686f485a685d0c776a5be20fcaf7ddb997802f8 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Fri, 5 Feb 2016 17:47:08 +0100 Subject: cleaner toArray magic --- lib/phpcl.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/phpcl.nim b/lib/phpcl.nim index 6d7aa0ea6..5eaa00f80 100644 --- a/lib/phpcl.nim +++ b/lib/phpcl.nim @@ -31,7 +31,7 @@ proc strtr*(s: string, replacePairs: PhpArray[string, string]): string {.importc proc strtr*(s, fromm, to: string): string {.importc.} proc toArray*[K,V](pairs: openarray[(K,V)]): PhpArray[K,V] {.magic: - "Repr".} + "Array".} template strtr*(s: string, replacePairs: openarray[(string, string)]): string = strtr(toArray(replacePairs)) -- cgit 1.4.1-2-gfad0