summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2016-10-24 20:28:27 +0200
committerAraq <rumpf_a@web.de>2016-10-24 20:28:27 +0200
commit8a0b9451705788fe7e4f09ad84450ac435e0cba0 (patch)
tree1ecc83185971916297165bf73a1f501f9c7168e6
parent3effd52ca30fc95b993d01af5207887b40deaec8 (diff)
downloadNim-8a0b9451705788fe7e4f09ad84450ac435e0cba0.tar.gz
asynchttpserver: cleanup example code
-rw-r--r--lib/pure/asynchttpserver.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/asynchttpserver.nim b/lib/pure/asynchttpserver.nim
index bb85787a4..4c7037a4e 100644
--- a/lib/pure/asynchttpserver.nim
+++ b/lib/pure/asynchttpserver.nim
@@ -86,7 +86,7 @@ proc respond*(req: Request, code: HttpCode, content: string,
   ## --------
   ## .. code-block::nim
   ##    proc handler(req: Request) {.async.} =
-  ##      if $req.url.path == "/hello-world":
+  ##      if req.url.path == "/hello-world":
   ##        let msg = %* {"message": "Hello World"}
   ##        let headers = newHttpHeaders([("Content-Type","application/json")])
   ##        await req.respond(Http200, $msg, headers)