summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlexander Ivanov <alehander42@gmail.com>2017-12-20 14:11:22 +0200
committerAlexander Ivanov <alehander42@gmail.com>2017-12-20 14:11:22 +0200
commiteba544996d5629943dbf84c0eeedaf5b958d6363 (patch)
treeaba60a4460df9c564db30adaa223d14f6ae00132
parent7b495e23d453c6528c9eee3ac8ae6982744ef403 (diff)
downloadNim-eba544996d5629943dbf84c0eeedaf5b958d6363.tar.gz
Fix docs!
-rw-r--r--lib/js/asyncjs.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/js/asyncjs.nim b/lib/js/asyncjs.nim
index c99170a49..ec410ee39 100644
--- a/lib/js/asyncjs.nim
+++ b/lib/js/asyncjs.nim
@@ -44,10 +44,10 @@
 ##         resolve(game)
 ##     return promise
 ##
-## Forward definitions work properly, you just don't need to add the ``{.async.}`` pragma:
+## Forward definitions work properly, you just need to always add the ``{.async.}`` pragma:
 ##
 ## .. code-block:: nim
-##   proc loadGame(name: string): Future[Game]
+##   proc loadGame(name: string): Future[Game] {.async.}
 ##
 ## JavaScript compatibility
 ## ~~~~~~~~~~~~~~~~~~~~~~~~~