From eba544996d5629943dbf84c0eeedaf5b958d6363 Mon Sep 17 00:00:00 2001 From: Alexander Ivanov Date: Wed, 20 Dec 2017 14:11:22 +0200 Subject: [PATCH] Fix docs! --- lib/js/asyncjs.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/js/asyncjs.nim b/lib/js/asyncjs.nim index c99170a49d..ec410ee39a 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 ## ~~~~~~~~~~~~~~~~~~~~~~~~~