Fix docs!
This commit is contained in:
parent
7b495e23d4
commit
eba544996d
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
## ~~~~~~~~~~~~~~~~~~~~~~~~~
|
## ~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue