diff --git a/docs/API.md b/docs/API.md
index 1db34ed4d18728f223f518eceea25fd967e00077..1addecfb27f88db6d50c65fc3b2bb3ae5ff3df1c 100644
--- a/docs/API.md
+++ b/docs/API.md
@@ -43,7 +43,7 @@ allowed to call `mg_set_option()` by the same thread that does
 `mg_poll_server()` (Mongoose thread) and change server configuration while it
 is serving, in between `mg_poll_server()` calls.
 
-    void mg_poll_server(struct mg_server *server, int milliseconds);
+    int mg_poll_server(struct mg_server *server, int milliseconds);
 
 Performs one iteration of IO loop by iterating over all
 active connections, performing `select()` syscall on all sockets with a timeout
@@ -121,6 +121,8 @@ of the websocket frame which URI handler can examine. Note that to
 reply to the websocket client, `mg_websocket_write()` should be used.
 To reply to the plain HTTP client, `mg_write_data()` should be used.
 
+Return value: number of active connections.
+
 
     const char **mg_get_valid_option_names(void);