diff --git a/docs/c-api/http_server.h/mg_register_http_endpoint.md b/docs/c-api/http_server.h/mg_register_http_endpoint.md index 752eaae6..99418caa 100644 --- a/docs/c-api/http_server.h/mg_register_http_endpoint.md +++ b/docs/c-api/http_server.h/mg_register_http_endpoint.md @@ -20,7 +20,7 @@ static void handle_hello1(struct mg_connection *nc, int ev, void *ev_data) { nc->flags |= MG_F_SEND_AND_CLOSE; } -static void handle_hello1(struct mg_connection *nc, int ev, void *ev_data) { +static void handle_hello2(struct mg_connection *nc, int ev, void *ev_data) { (void) ev; (void) ev_data; mg_printf(nc, "HTTP/1.0 200 OK\r\n\r\n[I am Hello2]"); nc->flags |= MG_F_SEND_AND_CLOSE; diff --git a/mongoose.h b/mongoose.h index 2933d48a..ab74b05a 100644 --- a/mongoose.h +++ b/mongoose.h @@ -4742,7 +4742,7 @@ void mg_file_upload_handler(struct mg_connection *nc, int ev, void *ev_data, * nc->flags |= MG_F_SEND_AND_CLOSE; * } * - * static void handle_hello1(struct mg_connection *nc, int ev, void *ev_data) { + * static void handle_hello2(struct mg_connection *nc, int ev, void *ev_data) { * (void) ev; (void) ev_data; * mg_printf(nc, "HTTP/1.0 200 OK\r\n\r\n[I am Hello2]"); * nc->flags |= MG_F_SEND_AND_CLOSE;