Fix docs!

This commit is contained in:
Alexander Ivanov 2017-12-20 14:11:22 +02:00
commit eba544996d

View file

@ -44,10 +44,10 @@
## resolve(game) ## resolve(game)
## return promise ## 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 ## .. code-block:: nim
## proc loadGame(name: string): Future[Game] ## proc loadGame(name: string): Future[Game] {.async.}
## ##
## JavaScript compatibility ## JavaScript compatibility
## ~~~~~~~~~~~~~~~~~~~~~~~~~ ## ~~~~~~~~~~~~~~~~~~~~~~~~~