summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorflywind <xzsflywind@gmail.com>2021-06-03 22:44:11 +0800
committerGitHub <noreply@github.com>2021-06-03 16:44:11 +0200
commitd31cbfd167c0bf2fcf2b1e6d401a20a16acaaebb (patch)
treea053ea30fc6ce39a3a409d283d198b29f6ca4469 /lib
parent0aa8b793a5f5ef58afe5e8aa96b7646a8afde765 (diff)
downloadNim-d31cbfd167c0bf2fcf2b1e6d401a20a16acaaebb.tar.gz
Revert "add missing import to asynchttpserver's example" (#18164)
This reverts commit 7ef364a402d3d827f10c893280f8dc7b9ef056f5.
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 8cea7f162..fd0cad5ca 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, asynchttpserver
+  import std/asyncdispatch
   proc main {.async.} =
     var server = newAsyncHttpServer()
     proc cb(req: Request) {.async.} =