mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-18 15:13:00 +08:00
Typo fixed
This commit is contained in:
parent
c9f7407573
commit
e06976836f
@ -15,7 +15,7 @@ Here's a minimal application `app.c` that embeds mongoose:
|
||||
#include "mongoose.h"
|
||||
int main(void) {
|
||||
struct mg_server *server = mg_create_server(NULL);
|
||||
mg_set_option(server, "document_root", "."); // Server current directory
|
||||
mg_set_option(server, "document_root", "."); // Serve current directory
|
||||
mg_set_option(server, "listening_port", "8080"); // Open port 8080
|
||||
for (;;) mg_poll_server(server, 1000); // Infinite loop, Ctrl-C to stop
|
||||
mg_destroy_server(&server);
|
||||
|
Loading…
Reference in New Issue
Block a user