diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-02-05 17:47:08 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-02-06 15:39:56 +0100 |
commit | 4686f485a685d0c776a5be20fcaf7ddb997802f8 (patch) | |
tree | da5b8cc5046d3d450a659ab71752b6cd880a0d21 /lib | |
parent | 9b44ca17c2343b8df34e8a958a8dd46eea00cdd4 (diff) | |
download | Nim-4686f485a685d0c776a5be20fcaf7ddb997802f8.tar.gz |
cleaner toArray magic
Diffstat (limited to 'lib')
-rw-r--r-- | lib/phpcl.nim | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |