summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authornarimiran <narimiran@disroot.org>2021-06-03 15:20:42 +0200
committernarimiran <narimiran@disroot.org>2021-06-03 15:20:42 +0200
commit7ef364a402d3d827f10c893280f8dc7b9ef056f5 (patch)
tree9fdabfadf21373e5337783b2f05c1af328c620db /lib
parent3e57c2f7800dbedd0df735a0236f09410f6db11a (diff)
downloadNim-7ef364a402d3d827f10c893280f8dc7b9ef056f5.tar.gz
add missing import to asynchttpserver's example
Diffstat (limited to 'lib')
-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 fd0cad5ca..8cea7f162 100644
--- a/lib/pure/asynchttpserver.nim
+++ b/lib/pure/asynchttpserver.nim
@@ -18,7 +18,7 @@ runnableExamples("-r:off"):
   # This example will create an HTTP server on an automatically chosen port.
   # It will respond to all requests with a `200 OK` response code and "Hello World"
   # as the response body.
-  import std/asyncdispatch
+  import std/asyncdispatch, asynchttpserver
   proc main {.async.} =
     var server = newAsyncHttpServer()
     proc cb(req: Request) {.async.} =