diff --git a/docs/c-api/mqtt.h/mg_mqtt_next_subscribe_topic.md b/docs/c-api/mqtt.h/mg_mqtt_next_subscribe_topic.md index 3e7eeab5..ccb96e62 100644 --- a/docs/c-api/mqtt.h/mg_mqtt_next_subscribe_topic.md +++ b/docs/c-api/mqtt.h/mg_mqtt_next_subscribe_topic.md @@ -7,9 +7,9 @@ signature: | struct mg_str *topic, uint8_t *qos, int pos); --- -Extract the next topic expression from a SUBSCRIBE command payload. +Extracts the next topic expression from a SUBSCRIBE command payload. -Topic expression name will point to a string in the payload buffer. -Return the pos of the next topic expression or -1 when the list +The topic expression name will point to a string in the payload buffer. +Returns the pos of the next topic expression or -1 when the list of topics is exhausted.