Skip to content

Commit 7ef364a

Browse files
committed
add missing import to asynchttpserver's example
1 parent 3e57c2f commit 7ef364a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pure/asynchttpserver.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ runnableExamples("-r:off"):
1818
# This example will create an HTTP server on an automatically chosen port.
1919
# It will respond to all requests with a `200 OK` response code and "Hello World"
2020
# as the response body.
21-
import std/asyncdispatch
21+
import std/asyncdispatch, asynchttpserver
2222
proc main {.async.} =
2323
var server = newAsyncHttpServer()
2424
proc cb(req: Request) {.async.} =

0 commit comments

Comments
 (0)