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 3e7eeab52868ec3608b6505cbd79c1e9ce837136..ccb96e6208974b9f8ed6a0f5569aabf296c0f509 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.