Merge pull request #1563 from vkoskiv/fix-docs

Small fix to mg_timer_add() documentation
This commit is contained in:
Sergey Lyubka 2022-05-28 18:28:27 +01:00 committed by GitHub
commit cea12a35b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1651,7 +1651,7 @@ Parameters:
- `topic` - Topic to subscribe
- `qos` - Required QoS
Return value: none
Return value: None
```c
mg_mqtt_sub(c, mg_str("my/topic"), 1);
@ -1902,7 +1902,7 @@ mg_tls_init(c, &opts);
### mg\_timer\_add()
```c
struct timer *mg_timer_add(struct mg_mgr *mgr,
struct mg_timer *mg_timer_add(struct mg_mgr *mgr,
uint64_t period_ms, unsigned flags,
void (*fn)(void *), void *fn_data);
```
@ -1922,7 +1922,7 @@ Parameters:
- `fn` - Function to invoke
- `fn_data` - Function argument
Return value: None
Return value: Pointer to created timer
Usage example:
```c