summary refs log tree commit diff stats
path: root/lib/js
diff options
context:
space:
mode:
authorhlaaftana <10591326+hlaaftana@users.noreply.github.com>2020-04-24 10:22:12 +0300
committerGitHub <noreply@github.com>2020-04-24 09:22:12 +0200
commitb2141fc2a12b239c4b24f38ffbd3ca629278630e (patch)
tree4ceb2352280d4d6637f91f6ae028ca8e71fef146 /lib/js
parentdd5ccc3e5aeb927a65ac40117113a1ca6b02d48c (diff)
downloadNim-b2141fc2a12b239c4b24f38ffbd3ca629278630e.tar.gz
changed type() to typeof() in docs and error messages (#14084)
Diffstat (limited to 'lib/js')
-rw-r--r--lib/js/jsffi.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/js/jsffi.nim b/lib/js/jsffi.nim
index 479c8c3a8..20dfb0433 100644
--- a/lib/js/jsffi.nim
+++ b/lib/js/jsffi.nim
@@ -83,7 +83,7 @@ proc toJsKey*[T: SomeFloat](text: cstring, t: type T): T {.importcpp: "parseFloa
 
 type
   JsKey* = concept a, type T
-    cstring.toJsKey(T) is type(a)
+    cstring.toJsKey(T) is T
 
   JsObject* = ref object of JsRoot
     ## Dynamically typed wrapper around a JavaScript object.