diff options
author | Alexander Ivanov <alehander42@gmail.com> | 2017-12-20 14:11:22 +0200 |
---|---|---|
committer | Alexander Ivanov <alehander42@gmail.com> | 2017-12-20 14:11:22 +0200 |
commit | eba544996d5629943dbf84c0eeedaf5b958d6363 (patch) | |
tree | aba60a4460df9c564db30adaa223d14f6ae00132 | |
parent | 7b495e23d453c6528c9eee3ac8ae6982744ef403 (diff) | |
download | Nim-eba544996d5629943dbf84c0eeedaf5b958d6363.tar.gz |
Fix docs!
-rw-r--r-- | lib/js/asyncjs.nim | 4 |
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 ## ~~~~~~~~~~~~~~~~~~~~~~~~~ |