Merge pull request #5208 from luked99/async-json-example-fix

Async json example fix
This commit is contained in:
Dominik Picheta 2017-01-10 22:02:24 +01:00 • committed by GitHub
commit c86988491f

View file

@ -85,6 +85,7 @@ proc respond*(req: Request, code: HttpCode, content: string,
## Examples ## Examples
## -------- ## --------
## .. code-block::nim ## .. code-block::nim
## import json
## proc handler(req: Request) {.async.} = ## proc handler(req: Request) {.async.} =
## if req.url.path == "/hello-world": ## if req.url.path == "/hello-world":
## let msg = %* {"message": "Hello World"} ## let msg = %* {"message": "Hello World"}