summary refs log tree commit diff stats
path: root/lib/js
diff options
context:
space:
mode:
authorJae Yang <jaey226@gmail.com>2020-04-25 14:00:24 -0400
committerGitHub <noreply@github.com>2020-04-25 20:00:24 +0200
commit362c8964bfbc675efbb054ed2c81396697706309 (patch)
tree638a71fd0a19231f17fe7459d2ccf5a05ea39226 /lib/js
parent13fa338ada7fcd8f7f33365ffd2000c79a4607fe (diff)
downloadNim-362c8964bfbc675efbb054ed2c81396697706309.tar.gz
Fixes #14110 (#14111)
Fixes jsffi usage example in doc
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 20dfb0433..e79e4e20d 100644
--- a/lib/js/jsffi.nim
+++ b/lib/js/jsffi.nim
@@ -22,7 +22,7 @@
 ##  var document {.importc, nodecl.}: JsObject
 ##  var console {.importc, nodecl.}: JsObject
 ##  # import the "$" function
-##  proc jq(selector: JsObject): JsObject {.importcpp: "$(#)".}
+##  proc jq(selector: JsObject): JsObject {.importcpp: "$$(#)".}
 ##
 ##  # Use jQuery to make the following code run, after the document is ready.
 ##  # This uses an experimental ``.()`` operator for ``JsObject``, to emit